Skip to content

Function score query is slow #275

Answered by alexklibisz
ArtemKar123 asked this question in Q&A
Discussion options

You must be logged in to vote

It seems, I found what the problem is. It is in tests, I was applying. So, I was measuring time as mean of 200 queries, but when I made a simple search with ann, at some point elastic just cached the result and worked faster.
And with function scoring it is not able to cache any results, so it looks, like it is working slower, although it's not.

That's interesting. Benchmarking Elasticsearch can be quite tricky, especially with such a large index.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@alexklibisz
Comment options

@ArtemKar123
Comment options

@alexklibisz
Comment options

@ArtemKar123
Comment options

@ArtemKar123
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alexklibisz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants