Hi,

I want to remove all the parent docs having a specific child doc. Eg.

<doc>Employee1
    <doc>
      <field>Dept1</field>
    </doc>
    <doc>
      <field>Dept2</field>
    </doc>
</doc>

<doc>Employee2
    <doc>
      <field>Dept2</field>
    </doc>
    <doc>
      <field>Dept3</field>
    </doc>
</doc>

Query: Remove all employees which lie in Dept1
Response should be: Employee2 *only*

Problem: *NOT operator is not being supported* in block join query parser.
*q = {!parent which=employee:*}*:* -department:Dept1 *-> results Employee1,
Employee2

*q= - {!parent which=employee:*} department:Dept1 *-> it does not work with
block join query parser.

Please suggest as to how I filter those employees which lie in Dept1 using
block join or any other query parser?

Thanks,
Lokesh

Reply via email to