lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Kraemer <>
Subject Re: Delete documents base on more than one condition?
Date Tue, 26 Apr 2005 08:17:55 GMT
On Mon, Apr 25, 2005 at 10:18:22PM +1000, Ben wrote:
> Hi
> Is it possible to delete a set of documents where they match certain
> conditions? I would like to delete a set of articles that belong to a
> given user within a category.

just build a query reflecting your criteria (e.g. a BooleanQuery
containing two TermQueries, one for category and one for the user
field), run a search with this query, walk through the search results
and delete each of them.


webit! Gesellschaft für neue Medien mbH
Dipl.-Wirtschaftsingenieur Jens Krämer
Schnorrstraße 76                      Telefon +49 351 46766 0
D-01069 Dresden                      Telefax +49 351 46766 66

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

View raw message