scripted_upsert means the script runs whether the document already exists or not. If you want to use docItem as the initial document for the script to act on, maybe try passing it in as a param to the script.
scripted_upsert means the script runs whether the document already exists or not. If you want to use docItem as the initial document for the script to act on, maybe try passing it in as a param to the script.
© 2020. All Rights Reserved - Elasticsearch
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.