Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How do I pick/ delete all the documents from Solr using the boolean NOT?

user-image
Question added by Mohamed Mansour , Java Developer , Arrow Electronics
Date Posted: 2014/05/04
Mujtaba Hassan kiani
by Mujtaba Hassan kiani , Sr Software Engineer , DPL

to delete this we need to to put - sign with query.

/solr/select/?q=-id:B96*

Deleted user
by Deleted user

http://localhost:8983/solr/chorkiSearch/update?stream.body=<delete><query>id:*:* AND !text:"hello"</query></delete>&commit=trueThis is an example of how you can build a query that would delete all the matching documents.

More Questions Like This