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

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-constant-score-query.html


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -