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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.