Ok so I cannot move forward with this,
If I use format like q=a&fq=category:(value1 value2 value3)
this gives me results with first category.
What i want is top n results per filter category and I dont want to use
group as performance seems to be very bad for groups my observation is group
query
Thanks Alexey for giving some really good points.
Just to make sure I get it right
Are you suggesting
1. do facets on category first lets say I get 10 distinct category
2. do another query where q=search query and fq= facet category values
May be im missing something, however Im not sure how to
You can think of using facets by category field instead of grouping. It will be
faster and categorization can be done against multiple category fields. Try
different facet methods.
If you don't need number of documents in each category and number of unique
categories is relatively low, you mig