Wednesday, November 15, 2017

ElasticSearch–Understand the query magic using ‘explain’

Sometimes an ElasticSearch query is invalid or doesn’t return the results you expect. To find out what is going on, you can add the explain parameter to the query string:

image

In your results you get an extra explanation section

image

More information: https://www.elastic.co/guide/en/elasticsearch/guide/master/_validating_queries.html

No comments: