Filtering and ordering

I would like to know the reason for below case

Case 1 : Consider, I have applied a filter on documents and the order of documents in response is 1,2,3,4.
Case 2: I have updated a field in the document 2, then If I execute the same filter on documents the order is being changed from 1,2,3,4 to 2,1,3,4.

if there is no query relevancy and we only apply a filter then Is this expected behaviour ? if yes, then in which order Elasticsearch will return the documents

Can you clarify this case please

If you only use filter, resulting in the same score for all matches, and do not specify a sorting that separates the matches ordering is not guaranteed and may appear random.

Welcome to our community! :smiley:

FYI I have moved this to it's own topic.

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