A
A
Anton Ivanov2014-03-07 13:10:26
elasticsearch
Anton Ivanov, 2014-03-07 13:10:26

Why doesn't ElasticSearch return all results?

Good day to all.
I've been struggling with this problem for several hours now. Neither the Internet nor the brains suggested a solution :(
The problem is that elasticsearch returns fewer results than it actually is. And it's not about the size parameter :)
localhost:9200/index/_search&q=key:value - we have 3 results
localhost:9200/index/type1/_search&q=key:value - we have 1 result, which was not in the first selection (in total, there should be 4 results in the first selection)
localhost:9200/index/type2/_search&q=key:value - we have one more result, in total, it turns out: five results.
I tried all types of search, nothing helps :(
I noticed that the score of those results that are given by the first link is about 8-10 and fractional.
And for those results that can only be obtained by a request for a specific type - score=1
Also, if you make a _explain request for documents found in all three requests, then 3 results in the first request have in description: "weight(key: value in 6525 ) [PerFieldSimilarity], result of:" and there are a lot of values ​​in details, and the results that are found by exact type have in description: "ConstantScore(key: L<), product of:""
I don't work much with ElasticSearch yet, so I might be missing something.Thanks in advance.Update: if you replace key with
_all , all 5 documents are found in the first
query.But the 146% field is named the same in all documents.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Starkov, 2014-03-07
@icelaba

Isn't it gauth.fr/2012/08/exact-search-with-elasticsearch
?
elasticsearch by default returns a non-exact result, in the link that he sent it is quite clearly shown what and how to win

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question