0
votes

I want to know what part of my query has been useful for the hits, and present it to my users.

Exemple query : "awesome quick fox"

  • Hit 1 : "the quick brown fox" --> "awesome [quick] [fox]"
  • Hit 2 : "the quick dog" --> "awesome [quick] fox"
  • Hit 3 : "the foxes" --> "awesome quick [fox]"

I know how to highlight in the results, but I want to know what part of the query was "useful".

Thanks.

1

1 Answers

0
votes

You can enable explanation of the results by adding "explain": true to the root of your query. This way you can see how the score is computed for each hit and know which part of the query influences more in the final score.