Hi,
I am using Elasticsearch version 7.1.1.
My index and cluster settings are as follows. Index Settings:
number_of_shards: 1
number_of_replicas: 2 Cluster structure:
Master nodes: 3
Data nodes:3
Coordinating node:2
For same query, i am getting getting different results.One shards gives a match and other 2 shards give no match.
My Observations:
Out of 3 shards only 1 shard gives the result for query.Other 2 shards give no match however that document is present on each shard.
Number of documents and size is same for each shard.
/_cat/shards
index shard prirep state docs store ip node
index-0 0 p STARTED 541384 1.8gb 172.29.236.74 es-data-01
index-0 0 r STARTED 541384 1.8gb 172.29.236.75 es-data-02
index-0 0 r STARTED 541384 1.8gb 172.29.236.56 es-data-03
Can someone please explain this behaviour or is it a known bug?
Thanks for your quick response.
Yes ,Indexing was stopped.I refreshed index manually.I observed the same behaviour.
Then i restarted whole cluster but issue still persists.
Do you get different results when searching for a specific document: either an ids query or a terms query matching _id, preferably both? What about if you try and GET that document?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.