I was wondering if there was a way to post a delete query using curl to delete all records that do not contain a certain field--something like this:

curl http://localhost:8080/solr/update --data-binary '<delete><query>-_title:[* TO *]</query></delete>' -H 'Content-type:text/xml; charset=utf-8'

The minus syntax seems to return the correct list of ids (that is, all records that do not contain the "_title" field) when I use the Solr administrative console to do the above query, so I'm wondering if Solr just doesn't support this type of delete.

Thanks for any help...

Reply via email to