Has_child search query broken?

I am trying to search with has_child

I used the simplest query possible to test it.

The query returns an exception that says the child has no parent mapping:

"Type [child_type] does not have parent mapping"

The mapping says otherwise.

I made sure i am only querying the relevant index ( as suggested in http://elasticsearch-users.115913.n3.nabble.com/Parent-Mapping-missing-td3294789.html)

I created a gist for it.

Any idea what could cause this?

On Wed, 2013-03-20 at 10:11 -0700, eranid wrote:

I am trying to search with has_child

I used the simplest query possible to test it.

The query returns an exception that says the child has no parent mapping:

"Type [child_type] does not have parent mapping"

The mapping says otherwise.

I made sure i am only querying the relevant index ( as suggested in
http://elasticsearch-users.115913.n3.nabble.com/Parent-Mapping-missing-td3294789.html)

I created a gist for it.
has_child query fails with "does not have parent mapping" · GitHub

Any idea what could cause this?

Could you gist a full recreation for this? Your current gist only has
part of the data.

I tried to recreate the problem from the info you gave, but it worked
correctly for me. Also, what version of ES?

clint

--
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.
For more options, visit https://groups.google.com/groups/opt_out.