I am attempting to write a transformation while using the _reindex API. The idea is that I'm taking an existing index, I want to reindex it and append a number to the end of a few hash string parameters in the process (type string). Is this a viable solution to do that?
You do have to create the index with the correct mapping yourself.
If you want to increment an integer, you can use the ++ notation, however your example is appended a string to a value, which is something completely different. Both work however.
Yes, in this scenario I want to append a string to a string field, e.g. bene_acc_no, orig_acc_no. In this scenario will the "source" : "ctx._source.owner_acc_no++" notation work or do I have to use the appending notation "ctx._source.owner_acc_no += '21' " ?
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.