Let say below are my documents in solr
[{"url": "/buy/1/", "items": ["i_123", "i_1234", "i_12345", "i_12346"]}, {"url": "/buy/2/", "items": ["i_123", "i_1234", "i_12346"]}, {"url": "/buy/3/","items": ["i_123", "i_12346"]}, {"url": "/buy/4/","items": ["i_123", "i_234", "i_2345"]}]
And my query is fq=items:(i_123 i_1234 i_12345)
Then resultant pages should give the matching items count with queried items.
The result should be with one extra field matching_items_count
[{"url": "/buy/1/""items": ["i_123", "i_1234", "i_12345", "i_12346"],"matching_items_count" : 3}, {"url": "/buy/2/","items": ["i_123", "i_1234", "i_1234444"],"matching_items_count" : 2}, {"url": "/buy/3/","items": ["i_123", "i_12346"],"matching_items_count" : 1}, { "url": "/buy/4/","items": ["i_123", "i_234", "i_2345"],"matching_items_count" : 1}]