Why elasticsearch term query is difference from the same term query?

hi guys, i have a tough problem, each term query results are different. i also got some infomation by setting preference parameters, but it still didn't work.any help would be very much sappreciated.
node: 1
replica: 0
no delete operation

{
	"sort": {
		"timestamp": {
			"order": "desc"
		}
	},
	"query": {
	  	"bool":{
		    "must" : [
		      {
		        "term" : {
		          "event_type.keyword" : {
		            "value" : "QUERY"
		    
		          }
		        }
		      },
		      {
		      	"range": {
		      		"timestamp":{
		      			"from":"2019-07-05T09:51:04",
		      			"to":"2019-07-05T10:11:04",
		      			"include_lower":true,
		      			"include_upper":true,
		      			"format":"yyyy-MM-dd'T'HH:mm:ss",
		      			"boost":1.0
		      		}
		      	}
		      }
		    ]
	    }
    }
}

i got this:

"hits": {
        "total": 8787285,
        "max_score": null,
...
"hits": {
        "total": 8805754,
        "max_score": null,
...

Hey,

can you mention what Elasticsearch version you are using? Can you share the output of

GET your_index_name

and also the full query including index name and additional parameters?

Does this happen if you specify two searches with preference=abc (two times the same string).

--Alex

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