# 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/20476>\
**Category:** Elasticsearch\
**Created:** [October 29, 2014, 10:49am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20476 "2014-10-29T10:49:35Z")\
**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:49am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20476/1 "2014-10-29T10:49:35Z")

</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.?

---

<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:34am UTC](https://discuss.elastic.co/t/elastic-search-returns-inconsistent-results-when-running-on-a-single-node/20476/2 "2014-10-30T05:34:57Z")

</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.

---

<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/20476/3 "2017-07-06T00:53:05Z")

</div>


