@Seach.Facet values not returned in REST API
Viswavaageesh Chandramouli
20
Reputation points
Hi All,
There's a difference between the results returned in the Azure Search Portal and the Rest API.
The parameter @search.facets and its associated values are not returned using the Rest API.
In the Azure Portal using a JSON query, the parameter @search.facets is retured:
But, in visual studio code, use the REST API Request:
GET {{baseUrl}}/indexes/{{indexName}}/docs?api-version=2024-05-01-preview&search=Renewables&$filter=TimePeriod eq '2035' and EnergyVector eq 'Renewables'&$select=*&$facet=Location,count:1000
Content-Type: application/json
api-key: {{apiKey}}
The parameter is not returned.
Thanks in advance.
Sign in to answer