Search_Explain API Request returning 404 - ES 8.4.2

Hello All,
I'm trying to run a search_explain API request over my 8.4.2 instance, but I'm getting a 404 error page as a result. I confirmed both EndPoint and the Private key are valid because the request works just by switching to the simple /search API request.

Any idea why the search_explain is not working?

curl --location 'https://my-instance.ent.eastus2.azure.elastic-cloud.com/api/as/v1/engines/my-engine/search_explain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer private-dp3XXXXXXXXXX7uvi7a' \
--data '{
"query": "My Search Criteria"
}'

Carlos.

Hi @Carlos_Redondo ,

In 8.4, this API was in Beta, so the URL is /api/as/v0/ not /api/as/v1. Make sure to choose your version when browsing documentation: Search Explain API (beta) | Elastic App Search Documentation [8.4] | Elastic

Hope that helps!

It worked like a charm! Thank you.

Carlos.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.