Starting situation:
I created an index with multiple fields, one of those fields is facetable. After indexing i executed search queries by setting a facet on this specific field. The returned results match the desired behaviour, everything works fine.
It is not necessary that all results which match the search term are returned. Therefore i set the "$top" parameter to 50, and only the first 50 results are returned. But if the first facet includes more than 50 results, all other facets are not returned as a result.
My question is: Is there a way to set the "$top" parameter for each facet? Or any other way to restrict the number of results for each facet? For instance return only the top 5 documents of each facet.
Is there any solution for this issue? Or is there an approach to achieve the desired behaviour?
Hopefully someone can help.
Thanks in advance!