fabriziofortino opened a new pull request, #2271: URL: https://github.com/apache/jackrabbit-oak/pull/2271
In multi shards scenarios (eg: 1 primary, 1 replicas) queries might produce inconsistent results (from the second iteration onwards we might miss results). This happens when the primary sort field is the score. The different shards might have slightly different stats producing inconsistent values for the score. To avoid this we can set a `preference` with a custom session identifier shared for the same queries. This identifier is used by elasticsearch to consistently route the search requests to the same shard. TODO: the current test setup includes a single ES node. To fully test these kind of scenarios we need a multi node ES cluster. This will be tackled in a separate PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org