Hi Try this instead
/solr/de/update?stream.body=<delete><query>last_seen:[* TO 2016-02-24T00:00:00Z]</query></delete>&commit=true …that is if you have streaming enabled in solrconfig. Else do a POST instead Note that I put a commit=true at the end, so you will see the changes immediately. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 26. feb. 2016 kl. 13.57 skrev Marc Burt <mb...@brainboxdigital.com>: > > 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 >