lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frans Flippo" <frans.fli...@gmail.com>
Subject Re: Bulk delete
Date Mon, 07 Jul 2008 07:32:49 GMT
Are you sure there is not a single criteria by which these documents
are selected for deletion? Surely they're not 1000 random documents?
Perhaps the criteria can not be described by the fields you're
currently indexing, but that's just a matter of adding the necessary
index fields.

E.g. <delete><query>date:[20080101 TO 20080330]</query></delete>

~ Frans

On Fri, Jul 4, 2008 at 4:52 PM, Jonathan Ariel <ionathan@gmail.com> wrote:
> Hi,
> Is there any good way to do a bulk delete of several documents?
> I have more than 1000 documents to delete... and I don't want to send N
> request with <delete><id>X</id></delete>.
> Doing a query delete isn't a good solution because I have a maximum amount
> of terms that I can use in the query. For example:
> <delete><query>id:(X1 OR X2 OR .... OR Xn)</query></delete> where
n could be
> more than 1000
>
> Thanks,
>
> Jonathan
>

Mime
View raw message