# Elastic search Ngram search high latency

**URL:** <https://discuss.elastic.co/t/elastic-search-ngram-search-high-latency/152388>\
**Category:** Elasticsearch\
**Created:** [October 14, 2018, 1:40pm UTC](https://discuss.elastic.co/t/elastic-search-ngram-search-high-latency/152388 "2018-10-14T13:40:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![natali](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@natali](https://discuss.elastic.co/u/natali)\
**Post date:** [October 14, 2018, 1:40pm UTC](https://discuss.elastic.co/t/elastic-search-ngram-search-high-latency/152388/1 "2018-10-14T13:40:26Z")

</div>

Hi,  
Im using a few analyzers to query elastic\_search. until now we used the dbl\_metaphone analyzer and the keyword analyzer.  
Now we want to use the 3gram\_tokenizer and the query search takes 4 times more time then searching on dbl\_metaphone or the keyword.

does it make sense it takes much longer to query it?  
is there a way to make it faster?

here in the index settings:

"settings": {  
"index": {  
"number\_of\_shards": "5",  
"provided\_name": "test\_3grams\_1410",  
"creation\_date": "1539501438067",  
"analysis": {  
"filter": {  
"dbl\_metaphone": {  
"type": "phonetic",  
"encoder": "double\_metaphone"  
},  
"unlimited\_dbl\_metaphone": {  
"max\_code\_len": "1000",  
"type": "phonetic",  
"encoder": "doublemetaphone"  
}  
},  
"analyzer": {  
"3gram": {  
"tokenizer": "3gram\_tokenizer"  
},  
"3gram\_phonetic": {  
"filter": ["unlimited\_dbl\_metaphone"],  
"tokenizer": "3gram\_tokenizer"  
},  
"dbl\_metaphone": {  
"filter": ["dbl\_metaphone"],  
"tokenizer": "standard"  
}  
},  
"tokenizer": {  
"3gram\_tokenizer": {  
"token\_chars": [],  
"min\_gram": "3",  
"type": "ngram",  
"max\_gram": "3"  
}  
}  
},  
"number\_of\_replicas": "1",  
"uuid": "Qb\_sMJJ2RAShYehyCb4PWw",  
"version": {  
"created": "6010199"  
}  
}  
}

Thanks,  
Natali

---

<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:** [November 11, 2018, 1:51pm UTC](https://discuss.elastic.co/t/elastic-search-ngram-search-high-latency/152388/2 "2018-11-11T13:51:13Z")

</div>

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