You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing a search request with a PIT + searchAfter and 2 sort fields (first one is not uniq, second one is uniq) returns less hits in total that for track_total_hits. The smaller the page size, the more data is lost, if you use scrolling, there is no problem. if you change the sorting values (only 1 uniq or first one is uniq and second one is not uniq), the problem also disappears
How can one reproduce the bug?
create a search request with a PIT and 2 sort fields like
and notice that in total you have less hits that returns in track_total_hits:
total using PIT = 1999953
"total": {
"value": 2000000,
"relation": "eq"
}
What is the expected behavior?
A search response in total returns the same number of hits as for track_total_hits
What is your host/environment?
SpringBoot application
The text was updated successfully, but these errors were encountered:
[Search Triage] This one needs some investigation. With the unique second sort field acting as a tie-breaker, there should be a total order on the documents, so the search_after should continue exactly after the previous doc. One possibility is that the second field may not be in all documents, such that "missing" is a duplicated value.
@Anastasiia186 -- can you please check if the second field is present in all documents? Also, are you able to produce a minimal test case that reproduces the issue? Thanks!
What is the bug?
Executing a search request with a PIT + searchAfter and 2 sort fields (first one is not uniq, second one is uniq) returns less hits in total that for track_total_hits. The smaller the page size, the more data is lost, if you use scrolling, there is no problem. if you change the sorting values (only 1 uniq or first one is uniq and second one is not uniq), the problem also disappears
How can one reproduce the bug?
create a search request with a PIT and 2 sort fields like
run this query several times using searchAfter like:
and notice that in total you have less hits that returns in track_total_hits:
total using PIT = 1999953
"total": {
"value": 2000000,
"relation": "eq"
}
What is the expected behavior?
A search response in total returns the same number of hits as for track_total_hits
What is your host/environment?
SpringBoot application
The text was updated successfully, but these errors were encountered: