Search code examples
azureazure-cognitive-search

azure search. What if I have a lot of facets


in a commercial application it is not uncommun to have hundreds facets. Of course not all products are flaged with all of them.

But when searching I need to add a facet querystring parameter that list all the facets that I want to get back. As I don't know by advance the list of relevant one, I have to pass all of them in the query. This is not practical we more than a few facets.

Is there a way to solve this issue or is it a limitation of the product?

The Azure Search doc:

https://msdn.microsoft.com/fr-fr/library/azure/dn798927.aspx


Solution

  • It looks like Azure Search now supports both a GET and POST method, and recommends using POST when the length of the URL would exceed the max limit of 2048 characters (1024 for just the querystring).

    https://learn.microsoft.com/en-us/rest/api/searchservice/search-documents