By browsing on this website you are agreeing to our 'Terms & Conditions' and the 'Privacy Policy' in regards to your rights and personal data handling.
There are two methods that allow you to send a Facet query to a database:
- GetFacets
- GetMultiFacets
GetFacets
There are few overloads for the GetFacets method and the main difference between them is a source of the facets. In one facets are passed as a parameter, in the other user must provide a key to a facet setup document.
Facet query results containing query Duration and a list of Results - one entry for each term/range as specified in FacetSetup document or passed in parameters.
GetMultiFacets
Sending multiple facet queries is achievable by using /facets/multisearch endpoint.
Syntax
curl \
http://{serverName}/databases/{databaseName}/facets/multisearch \
-X POST \
-d @facets.txt