I'm moving my ES mapping to nested objects and form some reason it doesn't
update the nested types when I update the main object.
Give an example.
I have two indexes "index1" and "index2"
The index "index1" has object "A" with a nested type of *"B" *
The object "B" belongs to the index "index2"
When I update object "B" in the "index2" the data on the object "A" is not updated on the "index1"
By design I know that Lucene indexes nested objects and root objects in the
same “block”. So, my question is "Nested objects should be in the same
index?" If not what I did wrong?
Nested documents indeed need to be in the same index. More than that, they
need to be provided as a property of their parent document. Please provide
your mappings and an example of document that you are indexing for further
help.
I'm moving my ES mapping to nested objects and form some reason it doesn't
update the nested types when I update the main object.
Give an example.
I have two indexes "index1" and "index2"
The index "index1" has object "A" with a nested type of *"B" *
The object "B" belongs to the index "index2"
When I update object "B" in the "index2" the data on the object "A" is not updated on the "index1"
By design I know that Lucene indexes nested objects and root objects in
the same “block”. So, my question is "Nested objects should be in the
same index?" If not what I did wrong?
I think that would be nice have this information in ES documentation
because at least for me it was not so clear.
Anyway thanks again for the fast answer.
Best r
Em quinta-feira, 16 de outubro de 2014 20h59min17s UTC-3, Adrien Grand
escreveu:
Hi,
Nested documents indeed need to be in the same index. More than that, they
need to be provided as a property of their parent document. Please provide
your mappings and an example of document that you are indexing for further
help.
On Thu, Oct 16, 2014 at 4:06 PM, Diogenes Buarque <diogenes...@gmail.com
<javascript:>> wrote:
Hello guys,
I'm moving my ES mapping to nested objects and form some reason it
doesn't update the nested types when I update the main object.
Give an example.
I have two indexes "index1" and "index2"
The index "index1" has object "A" with a nested type of *"B" *
The object "B" belongs to the index "index2"
When I update object "B" in the "index2" the data on the
object "A" is not updated on the "index1"
By design I know that Lucene indexes nested objects and root objects in
the same “block”. So, my question is "Nested objects should be in the
same index?" If not what I did wrong?
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.