# Autocomplete search

**URL:** https://discuss.elastic.co/t/autocomplete-search/34109
**Category:** Elasticsearch
**Created:** [November 8, 2015, 2:04pm UTC](https://discuss.elastic.co/t/autocomplete-search/34109 "2015-11-08T14:04:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![obe\_la](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@obe\_la](https://discuss.elastic.co/u/obe_la)
#### Post date: [November 8, 2015, 2:04pm UTC](https://discuss.elastic.co/t/autocomplete-search/34109/1 "2015-11-08T14:04:30Z")

</div>

Hi Everyone,

I'm building a search autocomplete for my website.I use Ngram tokenizer but it not exact.  
Example, I have a input : "The quick brown fox jumps over the lazy dog", i wan analyze this input:

1. Th, The, The q, The qu ,..., The quick brown fox jumps over the lazy dog
2. qu, qui, quic, quick, quick b, quick br ,...,quick brown fox jumps over the lazy dog  
....  
n. la, laz, lazy, ... , lazy dog

I need help.  
Thanks.

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [November 8, 2015, 2:34pm UTC](https://discuss.elastic.co/t/autocomplete-search/34109/2 "2015-11-08T14:34:26Z")

</div>

Use Edge ngram or the completion suggester. Watch out for edge ngram  
because it can make many large tokens. It doesn't create as many tokens as  
ngram (yay) but it still creates an awful lot of them compared to the  
"normal" tokenizers.

---

<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 5, 2017, 11:39pm UTC](https://discuss.elastic.co/t/autocomplete-search/34109/3 "2017-07-05T23:39:56Z")

</div>


