Ignore mask characters in search

Need to store some fields with a kind of mask and perform searches with the
mask and without it.
For example, store a field of type "123456-45".
I want this value to be returned to fetch both "12345" as "123.4" or "6-45".
I always know what the characters to be ignored when mapping, but not in
the search.
What type of analyzer I could use? And how to map?
Thank you

--
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/67593087-fb84-48cf-9156-631260c00768%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.