Solr delete document using UI and querystring

How do you delete a document from Solr?

You can use query string parameters to do the delete:

https://[server]:8983/solr/[core]/update?commit=true&stream.body=<delete><query>[query]</query></delete>
  • server: The name of your Solr server
  • core: The name of the Solr core (the Solr index) to delete from
  • query: The Solr query returning the document to delete

Example:

https://localhost:8983/solr/sitecore_master_index/update?commit=true&stream.body=<delete><query>_group:b74d1721779538ddb695afe69ce5f461</query></delete>

MORE TO READ:

Advertisements

About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.
This entry was posted in General .NET and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.