Function score query and simple nearest_neighbors query return different values. #276
Answered
by
alexklibisz
ArtemKar123
asked this question in
Q&A
-
Hi! I have faced a new issue. I have 2 different queries:
And they return different values even when the colors array in second query is array of every possible color in index. |
Beta Was this translation helpful? Give feedback.
Answered by
alexklibisz
Jun 26, 2021
Replies: 1 comment 2 replies
-
Tried to do the same but with angular similarity and it works just fine! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Artem,
Can you look at the scores from both queries and make sure that they are virtually equivalent? Specifically, just look at the score of the last document in the results. Both query should have roughly the same score for this document. They might differ some minor decimal precision. If they are not equivalent, then we have a more interesting question or problem.