Hi,
Can someone let me know how the score is calculating. I'm having two records with the same data. Please find below.
PUT titles/title/1
{"title": "SAME OLD SONG AND DANCE","composers": "perry"}
PUT titles/title/15
{"title": "SAME OLD SONG AND DANCE","composesr": "perry"}
In output the score is showing different. Please find below result.
"total": 11,
"max_score": 2.2053034,
"hits": [
{
"_index": "titles",
"_type": "title",
"_id": "1",
"_score": 2.2053034,
"_source": {
"title": "SAME OLD SONG AND DANCE",
"composers": "perry"
}
},
{
"_index": "titles",
"_type": "title",
"_id": "15",
"_score": 0.003336221,
"_source": {
"title": "SAME OLD SONG AND DANCE",
"composesr": "perry"
}
}
POST titles/title/_search
{
"from" : 0,
"size" : 20,
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "((title:"same old song and dance"^100 OR (title:same~0.8 AND title:old~0.8 AND title:song~0.8 AND title:and~0.8 AND title:dance~0.8)^50 OR (title:same~0.5 AND title:old~0.5 AND title:song~0.5 AND title:and~0.5 AND TITLE:dance~0.5)^10)^500 AND (composers:"perry" OR composers:"tallarico" OR composers:"perry tallarico"~2^2))^100 OR (title:"same old song and dance"^100 OR (title:same~0.8 AND title:old~0.8 AND title:song~0.8 AND title:and~0.8 AND title:dance~0.8)^50 OR (title:same~0.5 AND title:old~0.5 AND title:song~0.5 AND title:and~0.5 AND title:dance~0.5)^10)^100 OR (title:same~0.8 OR title:old~0.8 OR title:song~0.8 OR title:and~0.8 OR title:dance~0.8)^0.001 OR (composers:perry OR composers:tallarico)^0.001"
}
},
"filter" : {
"not" : {
"filter" : {
"query" : {
"match" : {
"DELETED" : {
"query" : "D",
"type" : "boolean"
}
}
}
}
}
}
}
}
}
My data -> elasticsearch-1.6.0\data\elasticsearch\nodes\0\indices\titles - > contains folders with 0 & 4
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.