# How to debug suggest queries

**URL:** https://discuss.elastic.co/t/how-to-debug-suggest-queries/264396
**Category:** Elasticsearch
**Created:** [February 16, 2021, 9:16am UTC](https://discuss.elastic.co/t/how-to-debug-suggest-queries/264396 "2021-02-16T09:16:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fabrizio\_Fortino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fabrizio_fortino/32/1719_2.png) [@Fabrizio\_Fortino](https://discuss.elastic.co/u/Fabrizio_Fortino)
#### Post date: [February 16, 2021, 9:16am UTC](https://discuss.elastic.co/t/how-to-debug-suggest-queries/264396/1 "2021-02-16T09:16:27Z")

</div>

I have a [suggest query](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html) that is not returning a document and I would like to understand the reason. Is there any way to debug why this happens? I tried using the [explain API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html) but this does not return back any useful information.

---

<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: [March 16, 2021, 9:16am UTC](https://discuss.elastic.co/t/how-to-debug-suggest-queries/264396/2 "2021-03-16T09:16:37Z")

</div>

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