# I want to improve the search speed

**URL:** <https://discuss.elastic.co/t/i-want-to-improve-the-search-speed/11629>\
**Category:** Elasticsearch\
**Created:** [April 18, 2013, 11:35am UTC](https://discuss.elastic.co/t/i-want-to-improve-the-search-speed/11629 "2013-04-18T11:35:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeongJong](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SeongJong](https://discuss.elastic.co/u/SeongJong)\
**Post date:** [April 18, 2013, 11:35am UTC](https://discuss.elastic.co/t/i-want-to-improve-the-search-speed/11629/1 "2013-04-18T11:35:25Z")

</div>

## System Specifications
CPU CPU vendor: Intel CPU model: Xeon (2400 MHz) CPU total logical cores: 16 CPU cache: 12kb

Memory  
16G

4 nodes

## The current situation
docs: 19,000,000 shards : 4 replica : 0 mapping and setting : .startObject("store").field("type", "mmapfs") .startObject("\_source").field("enabled", false) .startObject("\_all").field("enabled", false)

index.refresh\_interval: 10s  
index.cache.field.type: soft  
index.query.bool.max\_clause\_count: 20000  
index.term\_index\_interval: 1  
indices.cache.filter.size: 50%

## Elsticsearch Start Option
/bin/elasticsearch -Des.index.storage.type=mmapfs -Des.max-open-files=true
## Search Query
[[ { "from": 0, "size": 15, "filter": { "and": { "filters": [ { "bool": { "should": { "terms": { "userId": ["54015", "160557", "29177", "105473", "28726", "124709", "250852", "53483", "27999", "213381"], "\_cache": true } }, "\_cache": true } }, { "range": { "postRegDate": { "from": "2012-04-18T17:11:25+0900", "to": "2013-04-18T17:11:25+0900", "include\_lower": true, "include\_upper": true }, "\_cache": true } } ], "\_cache": true } }, "explain": false, "fields": ["field1", "field2", "field3", "field4", "field5", "field6", "field7", "field8", "field9", "field10", "field11", "field12", "field13"], "sort": [{ "newsRegDate": { "order": "desc" } }] } ]

**0.07 seconds in response to a similar query in lucene**  
But now I want a similar response time takes 3 to 4 seconds before the cache.  
Takes the cache after a response time of approximately 0.213.

---

<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, 2:40am UTC](https://discuss.elastic.co/t/i-want-to-improve-the-search-speed/11629/2 "2017-07-06T02:40:38Z")

</div>


