UAX URL Email Tokenizer not working

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

          "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:

"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

Welcome!

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

Thanks!

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

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