Why does ElasticSearch give a lower score to a term when it's with more terms? -
i have index (on local, testing, cluster), fields using simple analizer.
when search term, results term in field more terms, lower score - why that? couldn't find reference.
for example, 'koala' in boolean search returns:
- (title 'a koala'): score 0.04500804
- (title 'how koala 1234'): score 0.02250402
in query explanation, fieldnorm 1.0 in first case, , 0.5 in second.
is possible return score indipendent number of terms in field?
to return bool must term query of koala documents scoring equal on "koala". use constant score query remove score query.
here runnable example http://sense.qbox.io/gist/21ae7b7e743dc30d66309f2a6b93043ded4ee401
Comments
Post a Comment