# Tuning search to speed up shingle analyzer response time from 150ms to 30 ms

**URL:** <https://discuss.elastic.co/t/tuning-search-to-speed-up-shingle-analyzer-response-time-from-150ms-to-30-ms/243975>\
**Category:** Elasticsearch\
**Created:** [August 6, 2020, 8:03am UTC](https://discuss.elastic.co/t/tuning-search-to-speed-up-shingle-analyzer-response-time-from-150ms-to-30-ms/243975 "2020-08-06T08:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekatwal](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@vivekatwal](https://discuss.elastic.co/u/vivekatwal)\
**Post date:** [August 6, 2020, 8:03am UTC](https://discuss.elastic.co/t/tuning-search-to-speed-up-shingle-analyzer-response-time-from-150ms-to-30-ms/243975/1 "2020-08-06T08:03:41Z")

</div>

Hi,

I am using shingle as search analyzer

RAM: 16GB DDR4  
SSD: 256 GB  
Heap size: 4gb

Index size is: 700mb  
Total documents in index : 4 million

A simple match query is made

```auto
GET index/_search
{
  "query":{
    "match":{"planets_text":"How Much Bigger is Jupiter Than Earth"}
  }
}

```

This query return two outputs for me:  
Jupiter and earth

I tried tuning using  
Heap\_size as 4g

elasticsearch.yml  
index.store.preload: ["\*"]  
bootstrap.memory\_lock: true

After tuning and before tuning it takes same time for response:  
Response time: 150 ms  
After caching: 30-40 ms

What further tuning can be done to reduce response time to 20-30 ms for fresh query.

Thanks

---

<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:** [September 3, 2020, 8:03am UTC](https://discuss.elastic.co/t/tuning-search-to-speed-up-shingle-analyzer-response-time-from-150ms-to-30-ms/243975/2 "2020-09-03T08:03:41Z")

</div>

Closed on September 3, 2020, 8:03am UTC

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