Index new field with no special chars during indexing

Dear Gurus,

I have case here, I would like to create an index with phone numbers in it. The phone numbers could be coming in different formats with spaces and special characters in it. I would like to create a new derived field with no spaces and special characters in the new field. I see there is pattern replace, But i would like to use copy_to as well.

Please let me know , thanks in advance.

check out the ingest node and its features - this way you could preprocess the numbers already in one format and go from there. As all of this happens before the lucene analysis (the JSON document gets enriched), using this with copy_to is fine.

--Alex

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