Hallo, i have the same problem if i send a query like this
"query" : {
"query_string" : {
"query" : "someText",
"fields": ["field1", "field2", "field3"]
}
The explain will always show *"description": "max of:"*
"_explanation": {
"value": 20,
"description": "max of:",
"details": [
{
"value": 3,
"description": "weight(_field1:someText in 18415)
[PerFieldSimilarity], result of:",
"details": [
{
"value": 3,
"description": "fieldWeight in 18415, product
of:",
"details": [
{
"value": 3,
"description": "tf(freq=3.0), with freq
of:",
"details": [
{
"value": 3,
"description": "termFreq=3.0"
}
]
},
{
"value": 1,
"description": "idf(docFreq=36,
maxDocs=84821)"
},
{
"value": 1,
"description": "fieldNorm(doc=18415)"
}
]
}
]
},
{
"value": 20,
"description": "weight(field2:someText in 18415)
[PerFieldSimilarity], result of:",
"details": [
{
"value": 20,
"description": "fieldWeight in 18415, product
of:",
"details": [
{
"value": 2,
"description": "tf(freq=2.0), with freq
of:",
"details": [
{
"value": 2,
"description": "termFreq=2.0"
}
]
},
{
"value": 1,
"description": "idf(docFreq=10,
maxDocs=84821)"
},
{
"value": 10,
"description": "fieldNorm(doc=18415)"
}
]
}
]
},
{
"value": 4,
"description": "weight(field3:someText in 18415)
[PerFieldSimilarity], result of:",
"details": [
{
"value": 4,
"description": "fieldWeight in 18415, product
of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq
of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0"
}
]
},
{
"value": 1,
"description": "idf(docFreq=12,
maxDocs=84821)"
},
{
"value": 4,
"description": "fieldNorm(doc=18415)"
}
]
}
]
}
]
}
Is it possible to use "sum of" for final score instead of "max of" ?
Greetings,
Alex
Am Donnerstag, 26. September 2013 22:48:27 UTC+2 schrieb Alan Jurgensen:
>
> I have a multi_field where I stash the name several ways: asis, standard,
> phonetic, nicknames
>
> am trying to use multi-match to search the name with specific boosts per
> name type.
> However my search score seems to only use the highest scoring sub-fields
> score.
> Want to get them summed....
>
> Is there any way I can get them summed for my final score? Something akin
> to: score_mode=sum ...
>
> Here's full context of index and search attempts:
> https://gist.github.com/jurgynet/6720252
>
> AJ
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/de64eb8f-33ea-4d5e-9ffa-34aa40d9a928%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
