Email Analyzer and Domain Field

I have a Json field called UserId in each document. I would like to create a new field that contains only the email domain.

Example:
{ "FirstName" : "John", "LastName" : "Smith", "Email" : "jsmith@gmail.com" }

How do I create an analyzer and a copy_to field that will let me have an additional field: EmailDomain : "gmail.com"

I know that the tokenizer will be the @ char, but I don't know how to create the analyzer, etc to do the rest of this.

Thank you!

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