Thanks Adrien…

Works like a charm!!!

On Wed, Jul 1, 2015 at 10:22 PM, Adrien Grand <jpou...@gmail.com> wrote:

> Hi Ravikumar,
>
> You need to run a BooleanQuery with two clauses:
>  - a must clause that matches all parent documents
>  - a must_not clause that matches all parents that have children
>
> Building this second clause can be done easily with a
> ToParentBlockJoinQuery around a child query that matches all your
> children documents.
>
>
> --
> Adrien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to