# How To tune query performance while searching for terms in Kibana

**URL:** <https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505>\
**Category:** Elasticsearch\
**Created:** [July 26, 2019, 11:57pm UTC](https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505 "2019-07-26T23:57:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadhavManne](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MadhavManne](https://discuss.elastic.co/u/MadhavManne)\
**Post date:** [July 26, 2019, 11:57pm UTC](https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505/1 "2019-07-26T23:57:19Z")

</div>

We have single Node cluster. which have logstash, elasticsearch, kibana installed on it.  
when we try to search for a terms in the message field and if the messages are huge like(3MB) .

query would be very slow to give the output Documents of the search.

Is there a way to tune the performance of the queries

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [July 27, 2019, 8:46am UTC](https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505/2 "2019-07-27T08:46:08Z")

</div>

Hi. Search speed is independent of the size of the document - it’s a term-\>docid lookup and that speed is the same for big or small docs.

Retrieval and highlighting costs are related to the size of the content though - JSON must be read from disk, parsed and marked up with matches and size is a factor here.  
You can test search speeds without retrieval costs if you set “size” to zero in the search request body.

---

<div class="post-metadata">

**Author:** ![MadhavManne](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MadhavManne](https://discuss.elastic.co/u/MadhavManne)\
**Post date:** [July 30, 2019, 5:57pm UTC](https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505/3 "2019-07-30T17:57:29Z")

</div>

Is There a way to tune the performance??

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [July 30, 2019, 6:06pm UTC](https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505/4 "2019-07-30T18:06:21Z")

</div>

You can use ‘stored’ fields to make certain fields in the JSON additionally stored as raw separate strings in the Lucene document to avoid retrieving and parsing JSOn.

---

<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:** [August 27, 2019, 6:06pm UTC](https://discuss.elastic.co/t/how-to-tune-query-performance-while-searching-for-terms-in-kibana/192505/5 "2019-08-27T18:06:29Z")

</div>

Closed on August 27, 2019, 6:06pm UTC

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