# Unexpected result on Query Tester

**URL:** <https://discuss.elastic.co/t/unexpected-result-on-query-tester/286999>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [October 18, 2021, 1:32pm UTC](https://discuss.elastic.co/t/unexpected-result-on-query-tester/286999 "2021-10-18T13:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aguiro05](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aguiro05/32/95450_2.png) [@aguiro05](https://discuss.elastic.co/u/aguiro05)\
**Post date:** [October 18, 2021, 1:32pm UTC](https://discuss.elastic.co/t/unexpected-result-on-query-tester/286999/1 "2021-10-18T13:32:06Z")

</div>

Hello everyone,  
I was wondering why my Query Tester search gives me the following result, using the query "albert":

 ![query_albert](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d66f69cb7a5172b3a1b8107d266503e447fe172.png)

First result has a score of 6.36 and second one has a score of 6.24. First result match field is shorter than second one (+ score), but there are more term matches on the second one, can anyone help me and explain it to me?

Thanks!

---

<div class="post-metadata">

**Author:** ![Vadim\_Yakhin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadim_yakhin/32/56723_2.png) [@Vadim\_Yakhin](https://discuss.elastic.co/u/Vadim_Yakhin)\
**Post date:** [October 21, 2021, 9:11pm UTC](https://discuss.elastic.co/t/unexpected-result-on-query-tester/286999/2 "2021-10-21T21:11:53Z")

</div>

Hi,

Do you have any Relevance tuning rules set up? [Relevance Tuning Guide, Weights and Boosts | Elastic App Search Documentation [7.15] | Elastic](https://www.elastic.co/guide/en/app-search/current/relevance-tuning-guide.html)

---

<div class="post-metadata">

**Author:** ![sanderunive](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sanderunive](https://discuss.elastic.co/u/sanderunive)\
**Post date:** [October 22, 2021, 9:26am UTC](https://discuss.elastic.co/t/unexpected-result-on-query-tester/286999/3 "2021-10-22T09:26:56Z")

</div>

Hello,

I had a question about scoring not too long ago. I didn't really knew what was going on. I cannot give you a complete answer, but maybe help you in the right direction as others did for me:

1. Knowing some basics about the Elastic algorithm is pretty useful, if you do not know that already. Here is a good explainer [Practical BM25 - Part 2: The BM25 Algorithm and its Variables | Elastic Blog](https://www.elastic.co/blog/practical-bm25-part-2-the-bm25-algorithm-and-its-variables)
2. Relevance tuning, search fields and weights, as already mentioned will impact the scoring.
3. If you use APIcalls, or just use them for testing, you can use the Explain-method. This will give you info on the buildup of the scoring for a document. So what contributes how much to the score. Haven't tried it myself so far, but if you are looking for details, this seems to be a good thing to try. For documentation see: [Explain API | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html)

Good luck!  
Sander

---

<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:** [November 19, 2021, 9:27am UTC](https://discuss.elastic.co/t/unexpected-result-on-query-tester/286999/4 "2021-11-19T09:27:32Z")

</div>

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