Re: Nested documents: deleting the whole subtree

2016-09-04 Thread Alexandre Rafalovitch
I can get this to: "q":"(+${parent_match} +${condition_match}) {!child of=${parent_match}}${condition_match}", "parent_match":"type:release", "condition_match":"release_name:\"6.1.0\"", But I am not sure that's "smarter". Regards, Alex. Newsletter and resources for Solr beginners and

Re: Nested documents: deleting the whole subtree

2016-09-03 Thread Alexandre Rafalovitch
Right. But how do I structure the query to say to match all root values that correspond to the parent entries selected by query. Maybe I am just blanking here but how do I form the query: q=_root_:[set of id values from query (+type:release +release_name:"6.1.0")] Regards, Alex. Newslet

Re: Nested documents: deleting the whole subtree

2016-09-03 Thread Mikhail Khludnev
Hello Alex, Internally, _root_ field is assigned across whole block. You can use it in deleteByQuery. The value for this field is equal to parent's uniqueKey. On Sun, Sep 4, 2016 at 5:51 AM, Alexandre Rafalovitch wrote: > Hello, > > If I am correct, deleting parent document still keeps the child

Nested documents: deleting the whole subtree

2016-09-03 Thread Alexandre Rafalovitch
Hello, If I am correct, deleting parent document still keeps the child documents in the index. Which means they now have dangling _root_ references and what not. What's the easiest delete command to take out the parent and all its multilevel children, when I find the parents themselves with a que