# UAX URL Email Tokenizer not working

**URL:** <https://discuss.elastic.co/t/uax-url-email-tokenizer-not-working/226239>\
**Category:** Elasticsearch\
**Created:** [April 2, 2020, 3:17pm UTC](https://discuss.elastic.co/t/uax-url-email-tokenizer-not-working/226239 "2020-04-02T15:17:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Salgodo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_salgodo/32/65571_2.png) [@Jose\_Salgodo](https://discuss.elastic.co/u/Jose_Salgodo)\
**Post date:** [April 2, 2020, 3:17pm UTC](https://discuss.elastic.co/t/uax-url-email-tokenizer-not-working/226239/1 "2020-04-02T15:17:56Z")

</div>

for some reason when i have the UAX URL Email tokenizer and then i had my lower case analyzer the UAX URL Email tokenizer just stops working

```auto
          "settings": {
                "analysis": {
                    "analyzer": {
                        "analyzer_case_insensitive": {
                            "tokenizer": "keyword",
                            "filter": "lowercase"
                        },
                        "email_an": {
                            "tokenizer": "uax_url_email",
                            "filter": "lowercase"
                        }
                    }
                },   
                "number_of_replicas": 0,
                "auto_expand_replicas": false
           }

```

heres my mappings:

```auto
"mappings": {

                "properties": {
                    "username": {
                        "type": "keyword",
                        "analyzer":"analyzer_case_insensitive"
                    },
                    "email": {
                        "type": "keyword",
                        "analyzer":"email_an"
                    }
                }
            }

```

im new to elastic sorry if i dont understand the problem here

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 2, 2020, 4:19pm UTC](https://discuss.elastic.co/t/uax-url-email-tokenizer-not-working/226239/2 "2020-04-02T16:19:57Z")

</div>

Welcome!

Did you test the analyzer with the `_analyze` API?  
If so, could you share the script you ran and the output?

Thanks!

---

<div class="post-metadata">

**Author:** ![Jose\_Salgodo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_salgodo/32/65571_2.png) [@Jose\_Salgodo](https://discuss.elastic.co/u/Jose_Salgodo)\
**Post date:** [April 2, 2020, 5:08pm UTC](https://discuss.elastic.co/t/uax-url-email-tokenizer-not-working/226239/3 "2020-04-02T17:08:13Z")

</div>

i found a fix for it, i changed the type of the email to text

---

<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 30, 2020, 5:08pm UTC](https://discuss.elastic.co/t/uax-url-email-tokenizer-not-working/226239/4 "2020-04-30T17:08:21Z")

</div>

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