The same query return different documents,why?

I send a request to the es cluster,and es return different score and document ,this is my query string:
{
"query": {
"bool": {
"must": [
{
"term": {
"shop_id": 7966
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 1,
"sort": [],
"aggs": {},
"explain": true
}
result1:
{
"took": 9,
"timed_out": false,
"_shards": {
"total": 230,
"successful": 230,
"failed": 0
},
"hits": {
"total": 177,
"max_score": 11.175269,
"hits": [
{
"_shard": 2,
"_node": "-pLUH7Y_TZWgLuuTgaJq1Q",
"_id": "1649835",
"_score": 11.175269,
"_explanation": {
"value": 11.175269,
"description": "weight(shop_id:`> in 20) [PerFieldSimilarity], result of:",
"details": [
{
"value": 11.175269,
"description": "fieldWeight in 20, product of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0",
"details": [ ]
}
]
}
,
{
"value": 11.175269,
"description": "idf(docFreq=25, maxDocs=682396)",
"details": [ ]
}
,
{
"value": 1,
"description": "fieldNorm(doc=20)",
"details": [ ]
}
]
}
]
}
}
]
}
}

result2:

{
"took": 7,
"timed_out": false,
"_shards": {
"total": 230,
"successful": 230,
"failed": 0
},
"hits": {
"total": 177,
"max_score": 11.147332,
"hits": [
{
"_shard": 2,
"_node": "kJSNzpFiRXi1ui-cOu23Jw",
"_id": "1661990",
"_score": 11.147332,
"_explanation": {
"value": 11.147332,
"description": "weight(shop_id:`> in 82900) [PerFieldSimilarity], result of:",
"details": [
{
"value": 11.147332,
"description": "fieldWeight in 82900, product of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0",
"details": [ ]
}
]
}
,
{
"value": 11.147332,
"description": "idf(docFreq=25, maxDocs=663596)",
"details": [ ]
}
,
{
"value": 1,
"description": "fieldNorm(doc=82900)",
"details": [ ]
}
]
}
]
}
}
]
}
}

why not the document is different?

Does your cluster green ? Can you format the Json plz ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.