I was trying to reindex a large index when I discovered that there are trailing \r\n in the end of all values of a field. Since the mapping in the new index for this field is a double, and not a string, it crashes.
How do I replace/trim these values to in the reindex process?
If all you want to do is trim whitespace on the one field, you can set up an ingest pipeline with the trim processor set up for the field, then specify the pipeline in your reindex request like so:
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.