I don’t know if it’s possible but, if we can mark the collection like protected, we can avoid DELETE command to remove de collection.
Maybe set the flag when CREATE command is executed? This is an interesting feature to avoid human errors, and relatively easy to implement. Regards -- Yago Riveiro On 12 Dec 2017 17:45 +0000, Markus Jelsma <markus.jel...@openindex.io>, wrote: > Hello, > > Well, you could remove the write permission for all segment files. Or, make a > custom UpdateProcessor that intercepts *:* operations and stops a delete in > its tracks. This is what we did, protect the search against me. Keep in mind > that a negative query can also delete everything, so you can check if the > numRows of the proposed delete query is equals to the number of documents. > > Regards, > Markus > > -----Original message----- > > From:Yago Riveiro <yago.rive...@gmail.com > > Sent: Tuesday 12th December 2017 18:28 > > To: solr-user@lucene.apache.org > > Subject: Protect a collection to be deleted > > > > Hi, > > > > Is it possible in Solr protect a collection to be deleted through a > > property? > > > > Regards > > > > > > > > > > ----- > > Best regards > > > > /Yago > > -- > > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > >