I am having very similar issue as the following post: Search After API - index state and updated documents
given the following initial query:
{ "size": 3, "query": { "query_string": { "query": "apple" } }, "sort": [ { "_score": "desc" }, { "date": "desc" }, { "_uid": "desc" } ] }
I am retrieving later pages using search after like so (with values from the last record returned by the first query):
{ "size": 3, "query": { "query_string": { "query": "apple" } }, "sort": [ { "_score": "desc" }, { "date": "desc" }, { "_uid": "desc" } ], "search_after": [ 1.4757546, 1557340985983, "document#d422926b21ead5d99fa5814246fbd20978a6df2a" ] }
After a few pages I start to see the same document with different scores coming up on other pages.
Given the same query should the same document have different scores on different pages?
How can I avoid duplicate hits (I mean identical document) while using search after for pagination?
Please Help!
Thanks,
Jim