I'm having trouble with my data consistency. I set up a cluster with three servers. Inside it, there's an index with two replica sets and two primary shards. I'm using Monstache to keep my data in sync with MongoDB. The issue is that every time I search using es_obj, the results come back in a different order. To fix this, I added a preference key with a random string acting as a session ID. This helps maintain consistency for my searches during my session. However, if my teammate runs the same code on another server with the same session ID, they get different results. Even when I restart my service, the results change. How can I make sure the order of results remains consistent across sessions until my data changes?
Hi @saleem_ullah, Welcome the Elastic community. Are you facing this while searching data into Elasticsearch or mongodb ?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.