Slide 9
Slide 9 text
codecentric AG
Replication Gotcha
− By default searches are routed to replicas in „round robin“ fashion
− Unexpected: Might get different results for the same search
− Reason: Deleted documents still affect scoring, cleanup is a local decision
!
− Solution: Use the search „preference“ parameter
− Possible values: local, primary, only some shards or nodes, arbitrary string
− For a consistent user experience, can use the user ID as preference