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.

Jens

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to