lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Burt <mb...@brainboxdigital.com>
Subject Deleting by query
Date Fri, 26 Feb 2016 12:57:10 GMT
Hi,

I'm trying to delete by query using the following:

/solr/de/update?<delete><query>last_seen:[* TO 
2016-02-24T00:00:00.00Z]</query></delete>

/solr/de/select?q=last_seen:[* TO 2016-02-24T00:00:00.00Z] returns the 
correct documents to be deleted.

Last time I attempted this using the above I somehow managed to delete 
all documents in the node rather than only the documents returned by the 
query.

Can anyone confirm that this is the correct method to delete documents 
by query?

-- 

Kind Regards,

Marc


Mime
View raw message