I'm indexing two different documents (building and customer) very
close to one another and I end up with two sources from different
types being combined into the source of the customer type. Any idea as
to why this is happening? I put a few line returns between the two
sources below for clarity. I am using version 0.17.4 of the Java API.
How are you indexing the data? Most of the times, it comes from the fact
that XContentBuilder(s) are cached on a thread for better perf, so using two
of those in two indexing requests before executing them can result in that.
If you use it, see if using XContentFactory#safeJsonBuilder fixes it.
I'm indexing two different documents (building and customer) very
close to one another and I end up with two sources from different
types being combined into the source of the customer type. Any idea as
to why this is happening? I put a few line returns between the two
sources below for clarity. I am using version 0.17.4 of the Java API.
1","name":"test","demographics":null,"dateCreated":"2011-08-30T21:10:42.846Z","lastUpdated":"2011-08-30T21:10:42.846Z","publicTags":"","enabled":true,"address":"test
test, test test"}
// THE CUSTOMER SOURCE
{"id":"4e52562703640801a2ba1894","name":"Test Organization
I was using the XContentFactory#jsonBuilder and switching to the
safeJsonBuilder solved my issue. Is there anything to watch out for
when using the safeJsonBuilder?
I was using the XContentFactory#jsonBuilder and switching to the
safeJsonBuilder solved my issue. Is there anything to watch out for
when using the safeJsonBuilder?
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.