Index and find emails using pre- and postfix wildcards

Hi all,

I'm looking for an easy way to index documents containing an email field
and searching for them using pre- and postfix wildcard queries (something
similar to SQL: WHERE email LIKE '%search_term%').

One way may be using the uax_url_email tokenizer but it seems that in this
case prefix wildcards aren't supported. Is that true?

As an alternative I thought of using a not_analyzed field to store the
email adress and query them with a something like an ignorecase flag...?

Regards,

Abid

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d1b4d2b3-d5f0-4177-8f84-27a9ae5e81b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.