How to debug relevance in DSL queries

Hi,

I'm working on my first set of queries, but I wish to 'debug' and see:

  • which part of my query match
  • what is the computed score for anything involved in the computation of the final score.

For the first, it seems I can play with highlight, but for the last it sounds more complex.

Even better, if I can have the details about how each score is computed for each result (the complete formula)... it will be amazing.

Do you think it is possible ? Or you have other technics/methods?

Thanks

@ClubberLang

Add explain true to the query or use explain api https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html

1 Like

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