# Could not retrieve data randomly

**URL:** <https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152>\
**Category:** Elasticsearch\
**Created:** [October 9, 2014, 2:53am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152 "2014-10-09T02:53:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xzer\_LR](https://avatars.discourse-cdn.com/v4/letter/x/2acd7d/32.png) [@xzer\_LR](https://discuss.elastic.co/u/xzer_LR)\
**Post date:** [October 9, 2014, 2:53am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152/1 "2014-10-09T02:53:42Z")

</div>

I have a cluster with 3 physical servers and elasticsearch 1.2.3 installed.

I updated some data at yestoday and then today I got a strange issue:

I query data as following:

{  
"query": {  
"bool": {  
"must": [  
{  
"term": {  
"applicationDateRouting.patentDocumentId": "11387107"  
}  
}  
],  
"must\_not": [],  
"should": []  
}  
},  
"from": 0,  
"size": 10,  
"sort": [],  
"facets": {}  
}

then I could get the expected one row data at the first time, then I query  
again, I will get nothing as following response:

{

- took: 40
- timed\_out: false
- \_shards: {
  - total: 10
  - successful: 10
  - failed: 0  
}

- hits: {
  - total: 0
  - max\_score: null
  - hits: []  
}

}

then, I query again, I get one row, again, nothing, again, one row, again,  
nothing....

In my application, we are using filter instead of query and we got the same  
issue as above.

It seems a bug of elasticsearch, is there any idea about how to analyze  
this issue?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b0b75829-e054-445b-a118-874f23ea30cd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b0b75829-e054-445b-a118-874f23ea30cd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![xzer\_LR](https://avatars.discourse-cdn.com/v4/letter/x/2acd7d/32.png) [@xzer\_LR](https://discuss.elastic.co/u/xzer_LR)\
**Post date:** [October 10, 2014, 2:11am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152/2 "2014-10-10T02:11:09Z")

</div>

Is there anybody can help me with this issue?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/afb83b2f-5735-44cb-89d3-90efc974b256%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/afb83b2f-5735-44cb-89d3-90efc974b256%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![xzer\_LR](https://avatars.discourse-cdn.com/v4/letter/x/2acd7d/32.png) [@xzer\_LR](https://discuss.elastic.co/u/xzer_LR)\
**Post date:** [October 14, 2014, 3:34am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152/3 "2014-10-14T03:34:53Z")

</div>

I need help about this, help!!!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/823060d2-d4a4-4ffb-965c-26c69b953bb1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/823060d2-d4a4-4ffb-965c-26c69b953bb1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![xzer\_LR](https://avatars.discourse-cdn.com/v4/letter/x/2acd7d/32.png) [@xzer\_LR](https://discuss.elastic.co/u/xzer_LR)\
**Post date:** [October 14, 2014, 3:43am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152/4 "2014-10-14T03:43:16Z")

</div>

additional information:

The replica factor of my index is 1, which means there are only 2 copies in  
the cluster.

Since I can get the data every 2 times, I guess that there is one missing  
copy, but how can I confirm it?

The cluster health api resports green.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6f5a1bb1-ec40-4c4f-8943-8172de46ac62%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6f5a1bb1-ec40-4c4f-8943-8172de46ac62%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![xzer\_LR](https://avatars.discourse-cdn.com/v4/letter/x/2acd7d/32.png) [@xzer\_LR](https://discuss.elastic.co/u/xzer_LR)\
**Post date:** [October 16, 2014, 2:31am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152/5 "2014-10-16T02:31:16Z")

</div>

Now I finally confirmed that it is a flappy item issue which had been  
mentioned  
before: [Redirecting to Google Groups](https://groups.google.com/forum/#!topic/elasticsearch/a-LELkkLRoE)

but it apears in version 1.2.3

Is there any advise about this issue? I am also interest in that whether  
there is an internal mechanism in elasticsearch to avoid this situation?

I AM ALSO FRUSTRATED BY NO ANSWER HERE.

在 2014年10月14日星期二UTC+9下午12时43分17秒，xzer LR写道：

> additional information:
> 
> The replica factor of my index is 1, which means there are only 2 copies  
> in the cluster.
> 
> Since I can get the data every 2 times, I guess that there is one missing  
> copy, but how can I confirm it?
> 
> The cluster health api resports green.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dbe9c2f0-7571-437d-ad6c-4dff06ea3114%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dbe9c2f0-7571-437d-ad6c-4dff06ea3114%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:55am UTC](https://discuss.elastic.co/t/could-not-retrieve-data-randomly/20152/6 "2017-07-06T00:55:54Z")

</div>


