# What are the rules to follow for a quick search response from Elasticsearch?

**URL:** <https://discuss.elastic.co/t/what-are-the-rules-to-follow-for-a-quick-search-response-from-elasticsearch/177619>\
**Category:** Elasticsearch\
**Created:** [April 19, 2019, 12:43pm UTC](https://discuss.elastic.co/t/what-are-the-rules-to-follow-for-a-quick-search-response-from-elasticsearch/177619 "2019-04-19T12:43:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aswini\_Kumar\_Rout](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aswini_kumar_rout/32/42165_2.png) [@Aswini\_Kumar\_Rout](https://discuss.elastic.co/u/Aswini_Kumar_Rout)\
**Post date:** [April 19, 2019, 12:43pm UTC](https://discuss.elastic.co/t/what-are-the-rules-to-follow-for-a-quick-search-response-from-elasticsearch/177619/1 "2019-04-19T12:43:31Z")

</div>

I am using HIgh level Java Rest client and I am getting the search response in average of 2.34 seconds for the 1st time when I search for a keyword after the 1st search because of caching I am getting response in 600 or 700 milliseconds.

So,Is there any rules should I follow to make the response faster like in less than a second for the 1st time also.

---

<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:** [May 17, 2019, 12:43pm UTC](https://discuss.elastic.co/t/what-are-the-rules-to-follow-for-a-quick-search-response-from-elasticsearch/177619/2 "2019-05-17T12:43:34Z")

</div>

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