lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <>
Subject Re: Delete Parents without any children...
Date Wed, 01 Jul 2015 16:52:01 GMT
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message