Quantcast
Channel: Brian Pedersen's Sitecore and .NET Blog
Viewing all articles
Browse latest Browse all 285

Solr delete document using UI and querystring

$
0
0

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:


Viewing all articles
Browse latest Browse all 285

Trending Articles