We have a JSON document (Media) that has two inner objects (GeoCodeResult
and LocalTime).
We first index the Media document and then rely on secondary background
processes to populate the two inner objects separately.
We need the three to be combined into a single ES type for performance
reasons.
The Media documents are re-indexed from their original source from time to
time, and when this happens the two inner objects that were previously
populated are reset back to null.
Is it possible to update the Media documents while preserving the two inner
objects?
I'm picturing something like an update script that can be provided to the
index operation that preserves the two inner objects unless non-null values
are found in the new parent document.
Added support for the update operation in the bulk api:
Is this correct? How does this approach perform in comparison to the
standard index API call?
On Saturday, June 22, 2013 11:22:45 AM UTC-4, Nariman Haghighi wrote:
We have a JSON document (Media) that has two inner objects (GeoCodeResult
and LocalTime).
We first index the Media document and then rely on secondary background
processes to populate the two inner objects separately.
We need the three to be combined into a single ES type for performance
reasons.
The Media documents are re-indexed from their original source from time to
time, and when this happens the two inner objects that were previously
populated are reset back to null.
Is it possible to update the Media documents while preserving the two
inner objects?
I'm picturing something like an update script that can be provided to the
index operation that preserves the two inner objects unless non-null values
are found in the new parent document.
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.