Re: No hit using scan/scroll with has_parent filter

2014-01-15 Thread Jean-Baptiste Lièvremont
Yep, this seems definitely related to the linked issue. I am looking forward to testing your fix, hopefully in 0.90.11 :) Regards, -- JB.L 2014/1/14 Martijn v Groningen martijn.v.gronin...@gmail.com So this is related to: https://github.com/elasticsearch/elasticsearch/issues/4703 On 14

Re: No hit using scan/scroll with has_parent filter

2014-01-15 Thread Martijn v Groningen
Thanks :) The work around for now is I guess to use the has_parent query instead of the has_parent filter. On 15 January 2014 09:17, Jean-Baptiste Lièvremont jean-baptiste.lievrem...@sonarsource.com wrote: Yep, this seems definitely related to the linked issue. I am looking forward to

Re: No hit using scan/scroll with has_parent filter

2014-01-14 Thread Martijn v Groningen
I'm a bit confused the first query with has_parent doesn't return hits, but the second does according to your gist or I'm I misreading it. I just did a little test here and has_parent and search with search_type scan seems to work correctly. On 10 January 2014 17:53, Jean-Baptiste Lièvremont

Re: No hit using scan/scroll with has_parent filter

2014-01-10 Thread Jean-Baptiste Lièvremont
Going further on the subject, I have tried to work around the issue using a filtered query, to no avail. So basically, if I want to fetch all child document IDs that match a given criterion on their parent, I have either to * use a query - which in my case requires that I duplicate the existing

Re: No hit using scan/scroll with has_parent filter

2014-01-09 Thread Jean-Baptiste Lièvremont
Hi Martijn, Thanks for your answer. You can find in the gist below some HTTP conversations made on my ES 0.90.6 node, as well as a link to the Java code responsible for the calls: https://gist.github.com/jblievremont/8331460 Please note that the issue appears only when combining scan/scroll

No hit using scan/scroll with has_parent filter

2014-01-08 Thread Jean-Baptiste Lièvremont
Hi folks, I use a parent/child mapping configuration which works flawlessly with classic search requests, e.g using has_parent to find child documents with criteria on the parent documents. I am trying to get all child document IDs that match a given set of criteria using scan and scroll,

Re: No hit using scan/scroll with has_parent filter

2014-01-08 Thread Martijn v Groningen
Hi Jean, Can you share how you execute the scan request with the has_parent filter? (via a gist or something like that) Martijn On 8 January 2014 15:17, Jean-Baptiste Lièvremont jean-baptiste.lievrem...@sonarsource.com wrote: Hi folks, I use a parent/child mapping configuration which