Limit number of facet results for facet interval in Azure Search

by user3188564   Last Updated October 17, 2019 05:26 AM - source

I have an index I want to query and get faceted results for a date field. A simple search through the portal does not limit the number of facets for the given query facet=mydatefield,interval:year&search=animal

The number of facet results should be limited to 10 as per the docs however I get over 100 unordered results.

Changing the interval to month or day produces 1000s of facet results.

The docs say you cannot combine interval with count but I am not specifying count. If using interval will the query always return all facet results for this field and ignore the default value? I have millions of records so this would be a big performance hit.

Tags : azure-search


Related Questions