# How to check how my Query was analyzed

**URL:** <https://discuss.elastic.co/t/how-to-check-how-my-query-was-analyzed/76803>\
**Category:** Elasticsearch\
**Created:** [February 28, 2017, 3:08pm UTC](https://discuss.elastic.co/t/how-to-check-how-my-query-was-analyzed/76803 "2017-02-28T15:08:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elena\_Panova](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Elena\_Panova](https://discuss.elastic.co/u/Elena_Panova)\
**Post date:** [February 28, 2017, 3:08pm UTC](https://discuss.elastic.co/t/how-to-check-how-my-query-was-analyzed/76803/1 "2017-02-28T15:08:04Z")

</div>

Hello team,

I have created own index and try to execute simple search request with fuziness like I pointed below.  
But in search results I see less items then expected to receive. The question is: which function i can use to see how my initial query was analyzed/transformed? Which final request (agter fuziness) is send to find items in my index?

{  
"query": {  
"bool": {  
"must": [  
{  
"multi\_match": {  
"query": "iphne headphnes",  
"operator": "and",  
"fuzziness": "AUTO",

```
        "fields": [
          "name",
          "*_name",
          "search_*"
        ]
      }
    }
  ]
}

```

},  
"size": 100  
}

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [February 28, 2017, 5:03pm UTC](https://discuss.elastic.co/t/how-to-check-how-my-query-was-analyzed/76803/2 "2017-02-28T17:03:05Z")

</div>

Try using "explain":

```auto
For example:

{
"explain": true, 
"query": {
"bool": {
"must": [
  ....
....   

```

---

<div class="post-metadata">

**Author:** ![Elena\_Panova](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Elena\_Panova](https://discuss.elastic.co/u/Elena_Panova)\
**Post date:** [March 1, 2017, 6:58am UTC](https://discuss.elastic.co/t/how-to-check-how-my-query-was-analyzed/76803/3 "2017-03-01T06:58:31Z")

</div>

Hello Jimmy,

Thank you for your quick reply.  
I tried to use explain, but the problem is that I receive a list of items that were found and for each item I can have different explanations.  
For example if I use query "iphone headphones", for one Item explan gives me search name "iphone" "headphone", for another item it can be "phone" "earphone". And If search result contain a lot of items i can see how my request was transformed only by checking explanation for each item.  
Is there possibility to see by which terms Elastic will perform search in my index in one line, all words together?

Thank you in advance,

---

<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 29, 2017, 6:58am UTC](https://discuss.elastic.co/t/how-to-check-how-my-query-was-analyzed/76803/4 "2017-03-29T06:58:52Z")

</div>

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