I've setup Elasticsearch with 1 cluster á 4 nodes. Number of shards per index: 1; Number of replicas per index: 3
When I call a simple query like the following one multiple times I get different results (different total hits and different top 10 documents):
http://localhost:9200/index_name/_search?q=term
Different data on each shard? I like to have all shards up to date. What can I do?
This is the result of /_cluster/health:
{
"cluster_name" : "secret",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 4,
"number_of_data_nodes" : 4,
"active_primary_shards" : 24,
"active_shards" : 96,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
}
As a temporary solution I rebuild the index through Ruby gem tire: ModelName.rebuild_index
But I need a long-term solution.