Per this post "theory behind relevance
scoring" http://www.elastic.co/guide/en/elasticsearch/guide/current/scoring-theory.html
Elasticsearch calculate the field-length norm as follows:
norm(d) = 1 / √numTerms
But per my testing, seems the actual result value calculated does not meet above formula.
Following is my index docs:
{
"title" : "quick brown fox"
}
{
"title" : "quick fox"
}
Then I query "fox" with following query:
POST /vsmtest/test/_search?explain
{
"query" : {
"match" : {"title":"fox"}
}
}
The result norm value are follows:
doc 1:
{
"value": 0.5,
"description": "fieldNorm(doc=0)"
}
doc 2:
{
"value": 0.625,
"description": "fieldNorm(doc=0)"
}
Can anyone help me understand how does 0.5 and 0.625 calculated per the
formula?
norm(d) = 1 / √numTerms
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/11f6dcea-6704-4a56-93f7-21bf89840789%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.