# Ngram for autocomplete\\typeahead

**URL:** <https://discuss.elastic.co/t/ngram-for-autocomplete-typeahead/11844>\
**Category:** Elasticsearch\
**Created:** [May 7, 2013, 5:17am UTC](https://discuss.elastic.co/t/ngram-for-autocomplete-typeahead/11844 "2013-05-07T05:17:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Dilley](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Brian\_Dilley](https://discuss.elastic.co/u/Brian_Dilley)\
**Post date:** [May 7, 2013, 5:17am UTC](https://discuss.elastic.co/t/ngram-for-autocomplete-typeahead/11844/1 "2013-05-07T05:17:52Z")

</div>

i'm using edgengram to do a username search (for an autocomplete feature)  
but it seems to be ignoring my search\_analyzer and instead splits my search  
string into ngrams (according to the analyze API anyway).

Here's my setup :[https://gist.github.com/briandilley/5530387](https://gist.github.com/briandilley/5530387)

The sample search works as expected (matches usernames starting with  
"brian") but if i search for a username that doesn't exist like  
"briandoesntexist" it still returns all "brian" matches - any idea?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Brian\_Dilley](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Brian\_Dilley](https://discuss.elastic.co/u/Brian_Dilley)\
**Post date:** [May 7, 2013, 5:44am UTC](https://discuss.elastic.co/t/ngram-for-autocomplete-typeahead/11844/2 "2013-05-07T05:44:56Z")

</div>

Here's the post on stackoverflow for those of you interested in nerd points  
🙂

> <https://stackoverflow.com/questions/16411963/elasticsearch-an-edgengram-for-autocomplete-typeahead-is-my-search-analyzer-bei>

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:37am UTC](https://discuss.elastic.co/t/ngram-for-autocomplete-typeahead/11844/3 "2017-07-06T02:37:59Z")

</div>


