# EdgeNGram at search time

**URL:** <https://discuss.elastic.co/t/edgengram-at-search-time/78480>\
**Category:** Elasticsearch\
**Created:** [March 14, 2017, 9:27am UTC](https://discuss.elastic.co/t/edgengram-at-search-time/78480 "2017-03-14T09:27:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grigorios\_Loukidis](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@Grigorios\_Loukidis](https://discuss.elastic.co/u/Grigorios_Loukidis)\
**Post date:** [March 14, 2017, 9:27am UTC](https://discuss.elastic.co/t/edgengram-at-search-time/78480/1 "2017-03-14T09:27:58Z")

</div>

Hello, I am using EdgeNgram in elastic. My main problem is that I want to set minGram and maxGram at search time and not at indexing time.That because I get many unrelated results.I want to set minGram as the size of the word user has typed and maxGram the word user has typed +[1.Is](http://1.Is) there any technique or way I am ignoring?

---

<div class="post-metadata">

**Author:** ![Grigorios\_Loukidis](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@Grigorios\_Loukidis](https://discuss.elastic.co/u/Grigorios_Loukidis)\
**Post date:** [March 27, 2017, 10:19am UTC](https://discuss.elastic.co/t/edgengram-at-search-time/78480/2 "2017-03-27T10:19:39Z")

</div>

The solution is to use EdgeNGram only on indexing analyzers.The must not be used on searching analyzers.

---

<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:** [April 24, 2017, 10:20am UTC](https://discuss.elastic.co/t/edgengram-at-search-time/78480/3 "2017-04-24T10:20:19Z")

</div>

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