Why the score in Elasticsearch is different if the data is same in two records

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"
}
}

How many shards in your index?
What does your query look like?

Hi @warkolm,

I didn't mention the no of shreds at the time of indexing. So it is taking default 5 shreds.

Thanks,
Vani Aravinda

How many docs in the index.

What does your query look like.

Hi @warkolm,

My query is as below.

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

Thanks,
Vani Aravinda

Have a look at _cat/indices?v to see how many docs in the index.

Hi @warkolm,

TanQ for ur quick reply. Can u please let me know the syntax in Sense plugin.

I checked with
GET titles/title/_cat

Output:
{
"_index": "titles",
"_type": "title",
"_id": "_cat",
"found": false
}

Thanks,
Vani Aravinda

That's the endpoint, it's a cluster level API call.

Hi @warkolm,

Is there a solution to change the score value after search in Elasticsearch 1.6.0??

Thanks,
Vani Aravinda