Re: Remove all parent docs having specific child doc

2015-02-20 Thread Kydryavtsev Andrey
> *q= - {!parent which=employee:*} department:Dept1 *-> it does not work with block join query parser. What do you mean? What this query (no spaces, brackets) ? q=-({!parent which=employee:*}department:Dept1) returns in your case? 20.02.2015, 18:02, "Mikhail Khludnev" : >  On Fri, Feb 20, 2015

Re: Remove all parent docs having specific child doc

2015-02-20 Thread Mikhail Khludnev
On Fri, Feb 20, 2015 at 2:10 PM, Lokesh Chhaparwal wrote: > Hi, > > I want to remove all the parent docs having a specific child doc. Eg. > > Employee1 > > Dept1 > > > Dept2 > > > > Employee2 > > Dept2 > > > Dept3 > > > > Query: Re

Remove all parent docs having specific child doc

2015-02-20 Thread Lokesh Chhaparwal
Hi, I want to remove all the parent docs having a specific child doc. Eg. Employee1 Dept1 Dept2 Employee2 Dept2 Dept3 Query: Remove all employees which lie in Dept1 Response should be: Employee2 *only* Problem: *NOT operator is