Doing a AND query on childs

Hello,

I have an index with two types of documents, places and prices, places are
parents of prices.

See sample here: https://gist.github.com/MrMoins/71a69c3d5cad40e29089

I try to make a request to find the places having prices with particular
status and search ID.
In my gist you can see the request giving me a result, but in fact it
should not.

am I doing something wrong?

Thanks

PS: original post on Elasticsearch FR Group
https://groups.google.com/forum/?fromgroups=#!topic/elasticsearch-fr/jZJHaBsszQk

--
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.

I've update my gist, with the solution.

On Friday, May 3, 2013 4:08:20 PM UTC+2, Christophe Moins wrote:

Hello,

I have an index with two types of documents, places and prices, places are
parents of prices.

See sample here: https://gist.github.com/MrMoins/71a69c3d5cad40e29089

I try to make a request to find the places having prices with particular
status and search ID.
In my gist you can see the request giving me a result, but in fact it
should not.

am I doing something wrong?

Thanks

PS: original post on Elasticsearch FR Group
https://groups.google.com/forum/?fromgroups=#!topic/elasticsearch-fr/jZJHaBsszQk

--
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.