Re: Term query to get children based on parent id

2014-03-12 Thread Clinton Gormley
Hi Rukshan Very nicely laid out question. Thanks for providing all of the steps. I agree that it doesn't work and (at least according to the docs) it should, so I've opened an issue here: https://github.com/elasticsearch/elasticsearch/issues/5399 Curiously, performing the same lookup using a

Re: Term query to get children based on parent id

2014-03-12 Thread Rukshan Perera
Hi Clint, Thanks for the answer. 'has_parent' query you have suggested works and I should be able to use it in my application. Regards, Rukshan On Wednesday, March 12, 2014 3:31:19 AM UTC-7, Clinton Gormley wrote: Hi Rukshan Very nicely laid out question. Thanks for providing all of the

Term query to get children based on parent id

2014-03-11 Thread Rukshan Perera
Hello, I have uploaded curl scripts to gist https://gist.github.com/rukshanperera/9492610. I have a three level parent/child types as shown in the following mappings {Parent : { properties : { name : { type :string,