# Using uax\_url\_email tokenizer and ngram together

**URL:** <https://discuss.elastic.co/t/using-uax-url-email-tokenizer-and-ngram-together/105327>\
**Category:** Elasticsearch\
**Created:** [October 26, 2017, 4:35am UTC](https://discuss.elastic.co/t/using-uax-url-email-tokenizer-and-ngram-together/105327 "2017-10-26T04:35:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidra\_89](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sidra\_89](https://discuss.elastic.co/u/sidra_89)\
**Post date:** [October 26, 2017, 4:35am UTC](https://discuss.elastic.co/t/using-uax-url-email-tokenizer-and-ngram-together/105327/1 "2017-10-26T04:35:54Z")

</div>

Hi,

i want to use both ngram filter and uax\_url\_email tokenizer on email address. so is there any way  
to combine two tokenizer into a single custom analyzer ?

so that i could search for [helloworld@gmail.com](mailto:helloworld@gmail.com) as well as hello or world or @gmail etc

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 26, 2017, 5:10am UTC](https://discuss.elastic.co/t/using-uax-url-email-tokenizer-and-ngram-together/105327/2 "2017-10-26T05:10:08Z")

</div>

You can only have one tokenizer per field, but you can use the gram filter  
instead of the ngram tokenizer. It will ngram the individual tokens produce  
by the tokenizer instead of the whole term.

---

<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 23, 2017, 5:10am UTC](https://discuss.elastic.co/t/using-uax-url-email-tokenizer-and-ngram-together/105327/3 "2017-11-23T05:10:24Z")

</div>

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