# Elastic Search Returns inconsistent results when running on a single node

**URL:** <https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20475>\
**Category:** Elasticsearch\
**Created:** [October 29, 2014, 10:48am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20475 "2014-10-29T10:48:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yasaswani\_Koduri](https://avatars.discourse-cdn.com/v4/letter/y/bcef8e/32.png) [@Yasaswani\_Koduri](https://discuss.elastic.co/u/Yasaswani_Koduri)\
**Post date:** [October 29, 2014, 10:48am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20475/1 "2014-10-29T10:48:24Z")

</div>

We have indexed Data using elastic search on a single node. And we have a  
thread running in the background used for updating the index with the  
recent changes.

Now we are using elastic search API's to run the search query. However ,  
the search query returns inconsistent results. On rerunning the same query  
continuously, sometime we get 0 results, sometime partial results and at  
sometimes we get complete results. We _have not set_ any timeout for the  
queries.

We are facing this issue in a cluster where only one node is an indexing  
node .

This is happening on one of the production environments.

Options tried out:  
Refreshed index - did not work.  
Deleted the index and built it completely again. - still the same issue  
inconsistent results

Could you let us know what might be causing 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/48fa19cc-50f5-48af-bf49-413319a7b666%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/48fa19cc-50f5-48af-bf49-413319a7b666%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Yasaswani\_Koduri](https://avatars.discourse-cdn.com/v4/letter/y/bcef8e/32.png) [@Yasaswani\_Koduri](https://discuss.elastic.co/u/Yasaswani_Koduri)\
**Post date:** [October 30, 2014, 5:35am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20475/2 "2014-10-30T05:35:31Z")

</div>

The issue has been resolved. We are setting a timeout value of zero at some  
place in our code . This has caused the 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/c08c6b9b-9105-485a-937b-f93fb3b47d32%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c08c6b9b-9105-485a-937b-f93fb3b47d32%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:53am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20475/3 "2017-07-06T00:53:04Z")

</div>


