locked
Is it possible to group by the search results? RRS feed

  • Question

  • I'm indexing some documents and I need to group them by an specific ID and return the top 5 matches. Is this possible to do? I was looking at the documentation and I was not able to find any information.

    We are currently using SOLR and we do have that option where we can select an ID and group the search results for that ID and return the top 5 matches on that group. 

    Monday, July 29, 2019 2:02 PM

Answers

  • Hi ebozzetti,

    Yes, I believe the scenario you described is possible. You can achieve this by using the facet filter. Please see How to build a facet filter in Azure Search to learn how to use the facet filter feature: "Faceted navigation is used for self-directed filtering on query results in a search app, where your application offers UI controls for scoping search to groups of documents." You can also check out this related SO post.

    Hope that helps. Please let us know if you have additional questions. Thanks for using Azure.

    Best,

    Grace

    Monday, July 29, 2019 6:08 PM