I have two different indexes:
Then, I need a relationship between them in a way that when I serach the houses it brings me the owner (the person associated) of the house. The inverse isn't required, but would be nice if possible.
I've searched about ElasticSearch relationships and found the Parent/Child one, that would solve the problem like a charm: Parent as the Persons and Child as the Houses.
But I read (and tested) that Parent/Child relationship requires both Parent and Child to be in the same index, and in my case I can't put all of them in the same index because that would be a mess due to all data residing in a single index.
In my tests I can create the indexes with types and add documents, but the error occurs when I try to search children with the message
[has_parent] query configured 'parent_type' [parent] is not a valid type or
[has_child] Type [child] points to a non existent parent type [parent]
Is there any way to accomplish this behavior using different indexes?