Parent child creation in two different indices

Hi All,

Is there any way to achieve creation of parent child mapping in two
different indices. As mentioned in documentation
http://www.elastic.co/guide/en/elasticsearch/guide/master/parent-child-mapping.html
The documentation gives examples of same index like company

I tried to create two indices
Index Type
Company Branch
Employee Employee

I have mentioned parent (branch) mapping in Employee type. There is no
error during creation of mapping and building index.
But elasticsearch is throwing error while searching using has_child or
has_parent in queries.
Is there any way to maintain two types of parent child relation in two
different indices ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a402dec6-fd93-4a26-a9de-eb3217f13f6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello Pavan ,

This is not possible.
The parent and child need to be on the same index and same shard.
To ensure this such a rule is imposed.

Thanks
Vineeth Mohan,
Elasticsearch consultant,
qbox.io ( Elasticsearch service provider http://qbox.io/)

On Wed, Apr 8, 2015 at 5:46 AM, Pavan Kumar pavan.bnv@gmail.com wrote:

Hi All,

Is there any way to achieve creation of parent child mapping in two
different indices. As mentioned in documentation

Parent-Child Mapping | Elasticsearch: The Definitive Guide [master] | Elastic

The documentation gives examples of same index like company

I tried to create two indices
Index Type
Company Branch
Employee Employee

I have mentioned parent (branch) mapping in Employee type. There is no
error during creation of mapping and building index.
But elasticsearch is throwing error while searching using has_child or
has_parent in queries.
Is there any way to maintain two types of parent child relation in two
different indices ?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/a402dec6-fd93-4a26-a9de-eb3217f13f6d%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a402dec6-fd93-4a26-a9de-eb3217f13f6d%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5mn0%3DUskwpY2CDMKtRs9xp77JzwC8-KZO5ZM0woa%3Dmkaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.