# Search not getting results

**URL:** <https://discuss.elastic.co/t/search-not-getting-results/37572>\
**Category:** Elasticsearch\
**Created:** [December 18, 2015, 12:46pm UTC](https://discuss.elastic.co/t/search-not-getting-results/37572 "2015-12-18T12:46:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudh\_Modi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Anirudh\_Modi](https://discuss.elastic.co/u/Anirudh_Modi)\
**Post date:** [December 18, 2015, 12:46pm UTC](https://discuss.elastic.co/t/search-not-getting-results/37572/1 "2015-12-18T12:46:36Z")

</div>

So, I am using the phrase prefix query, and whenever I am searching with letter 's' in my dev machine, i can get the correct number of results. however in my production environment with shards config, I am not getting any result.  
I am also using 'size' to limit the number of results to be returned.  
I am a little confused as in what is going wrong, because everything works fine in dev machine.  
Apologies if it seems to simple question.

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [December 18, 2015, 5:06pm UTC](https://discuss.elastic.co/t/search-not-getting-results/37572/2 "2015-12-18T17:06:06Z")

</div>

It is hard to say what is going wrong. Do you have the same data on your dev machine and your prod environment? Can you post the exact query and what documents you expect to be returned?

---

<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 5, 2017, 11:29pm UTC](https://discuss.elastic.co/t/search-not-getting-results/37572/3 "2017-07-05T23:29:55Z")

</div>

Closed on July 5, 2017, 11:29pm UTC


