If I try to add a document using the bulk update API (doc_as_upsert=true)
and set its parent property, I do not see the document as the child of the
specified parent when I make a has_parent query. Can you please help see
what could be wrong with the below. Thanks in advance.
Hi Poorva,
you are right, I looked into it and this is most likely a bug. It seems
that we do read the parent, but we only use it for routing when updating a
document, while in case of doc_as_upsert we should also add the _parent to
the documents. Would you mind opening an issue herehttps://github.com/elasticsearch/elasticsearch/issues
?
On Sunday, August 4, 2013 2:08:33 AM UTC+2, Poorva Potnis wrote:
Hi -
If I try to add a document using the bulk update API (doc_as_upsert=true)
and set its parent property, I do not see the document as the child of the
specified parent when I make a has_parent query. Can you please help see
what could be wrong with the below. Thanks in advance.
Thanks! I opened the issue as you suggested.
Poorva
On Monday, August 5, 2013 7:34:59 AM UTC-7, Luca Cavanna wrote:
Hi Poorva,
you are right, I looked into it and this is most likely a bug. It seems
that we do read the parent, but we only use it for routing when updating a
document, while in case of doc_as_upsert we should also add the _parent to
the documents. Would you mind opening an issue herehttps://github.com/elasticsearch/elasticsearch/issues
?
On Sunday, August 4, 2013 2:08:33 AM UTC+2, Poorva Potnis wrote:
Hi -
If I try to add a document using the bulk update API (doc_as_upsert=true)
and set its parent property, I do not see the document as the child of the
specified parent when I make a has_parent query. Can you please help see
what could be wrong with the below. Thanks in advance.
Thanks a lot for opening the issue, it's fixed now. Also, the fix has
already been released with 0.90.3.
Cheers
Luca
On Monday, August 5, 2013 7:38:34 PM UTC+2, Poorva Potnis wrote:
Thanks! I opened the issue as you suggested.
Poorva
On Monday, August 5, 2013 7:34:59 AM UTC-7, Luca Cavanna wrote:
Hi Poorva,
you are right, I looked into it and this is most likely a bug. It seems
that we do read the parent, but we only use it for routing when updating a
document, while in case of doc_as_upsert we should also add the _parent to
the documents. Would you mind opening an issue herehttps://github.com/elasticsearch/elasticsearch/issues
?
On Sunday, August 4, 2013 2:08:33 AM UTC+2, Poorva Potnis wrote:
Hi -
If I try to add a document using the bulk update API
(doc_as_upsert=true) and set its parent property, I do not see the document
as the child of the specified parent when I make a has_parent query. Can
you please help see what could be wrong with the below. Thanks in advance.
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.