# Inconsistent query results

**URL:** <https://discuss.elastic.co/t/inconsistent-query-results/113715>\
**Category:** Elasticsearch\
**Created:** [January 2, 2018, 3:46am UTC](https://discuss.elastic.co/t/inconsistent-query-results/113715 "2018-01-02T03:46:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukrrambajwa](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mukrrambajwa](https://discuss.elastic.co/u/mukrrambajwa)\
**Post date:** [January 2, 2018, 3:46am UTC](https://discuss.elastic.co/t/inconsistent-query-results/113715/1 "2018-01-02T03:46:33Z")

</div>

Hi,  
I indexed data to elastic and when I query elastic multiple times I am getting the different response to the same query.

I came to know that it can be due to inconsistent replicas, so I used preference option to force primary replica for search but still the same results.

I used to index and query same data before and never experienced this before. I am using AWS Elasticsearch service.

Data is queried let's say one day after the ingestion (To nullify eventual consistency assumption).

Thanks  
Mukrram Ur Rahman

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 3, 2018, 9:58am UTC](https://discuss.elastic.co/t/inconsistent-query-results/113715/2 "2018-01-03T09:58:51Z")

</div>

Hey,

can you be more exact what inconsistent means, can you show how your search request (including the preference option) looks like? Is new data being indexed while this is happening or not? Does this happen when you tried only with a single shard index?

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 31, 2018, 9:58am UTC](https://discuss.elastic.co/t/inconsistent-query-results/113715/3 "2018-01-31T09:58:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
