How to check how my Query was analyzed

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
}

Try using "explain":

For example:

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

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,

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