I have only a single record in my elastic search cluster. It has the text "Foo Bar".
When I run the following query on the cluster, the score comes out to be 0.11506979 :
{
"size" : 100,
"query" : {
"query_string" : {
"query" : "foo bar"
}
}
}
However, when I run the following query (notice the * after foo bar) on the cluster, the score comes out to be 0.9798734
{
"size" : 100,
"query" : {
"query_string" : {
"query" : "foo bar*"
}
}
}
Why is the score more in case I add the * ? Isn't there only one document to match?