Setup
Fallowing is my ES setup.
- Using Elastic Cloud
- Have 3 shard with 3 replicas
- Size is 5 GB(3.2 millions documents)
Problem Statement
While performing the wildcard search, its giving a different result each time. I believe that the search is going to different shards and giving the fastest result first(score is same) .
- If I make my index with single shard instead of 3 shards for 3.2 million records(5 GB), will it impact the performance?
or
- What is the other best way to query multiple shards with the same result all the time with faster response time (not the priority).
PS I've gone through the below article and I didn't get clear idea.
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-preference.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/size-your-shards.html
Thanks in advance.