# Routing error. Problems with "search\_explain" API 7.13.2

**URL:** <https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 16, 2022, 2:10pm UTC](https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086 "2022-11-16T14:10:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquin\_Bahamonde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joaquin_bahamonde/32/97934_2.png) [@Joaquin\_Bahamonde](https://discuss.elastic.co/u/Joaquin_Bahamonde)\
**Post date:** [November 16, 2022, 2:10pm UTC](https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086/1 "2022-11-16T14:10:52Z")

</div>

Hi there, I have a problem with elastic enterprise search API 8.5, specifically with the "search\_explain" API. My problem is the following, I did a cURL request to the endpoint specificied in the [documentation](https://www.elastic.co/guide/en/app-search/8.5/search-explain.html), but the output it wasn't the expected, and I got a 404 Not Found Error, with the body

```auto
{
 "errors": "Routing Error. The path you have requested is invalid."
}

```

The cURL request that i did is the following:

```auto
curl -X POST 'https://[instance id].ent.us-east-1.aws.found.io/api/as/v0/engines/[myengine]/search_explain' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [myprivatekey]' \
-d '{
  "query": "hormigón"
}'

```

I need this funcionality, because I want to find the best level of precision for my differents engines. I read the documentation about [precision](https://www.elastic.co/guide/en/app-search/8.5/precision-tuning.html), but I'm not sure how the "Analyzers" works. For example, In my current engine, If I do the query "hormigón", elastic is returning documents that have words that contains the syllabe "horm". I don't want this and to "fix" this, the only option that I have is tunning the precision parameter.

Thanks,

Joaquin B

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [November 16, 2022, 5:53pm UTC](https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086/2 "2022-11-16T17:53:45Z")

</div>

Hi @Joaquin_Bahamonde ,

Your request looks correct. Let's double-check a few things:

1. What is the exact version of your deployment?
2. Make sure you're using the correct Enterprise Search URL
3. Make sure you're using a correct engine name, and the engine exists
4. Do other API requests (such as [Search API](https://www.elastic.co/guide/en/app-search/8.5/search.html)) on the same engine work?

---

<div class="post-metadata">

**Author:** ![Joaquin\_Bahamonde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joaquin_bahamonde/32/97934_2.png) [@Joaquin\_Bahamonde](https://discuss.elastic.co/u/Joaquin_Bahamonde)\
**Post date:** [November 16, 2022, 6:07pm UTC](https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086/3 "2022-11-16T18:07:39Z")

</div>

Hi @Irina_Truong,

1. The current version of our deployment elastic is v7.13.2
2. Yes. I checked the Enterprise Search URL
3. Yes. I checked the engine name.
4. Yes, I did the Search request and works perfectly. I tried with the same Enterprise Search URL and Engine name as the search\_explain request.

Thanks

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [November 16, 2022, 6:26pm UTC](https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086/4 "2022-11-16T18:26:49Z")

</div>

> The current version of our deployment elastic is v7.13.2

That explains it, `search_explain` API was only added in 8.2.0.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 14, 2022, 6:27pm UTC](https://discuss.elastic.co/t/routing-error-problems-with-search-explain-api-7-13-2/319086/5 "2022-12-14T18:27:19Z")

</div>

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