Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting solr documents from Solr Admin

Tags:

solr

How do I delete all the documents in my SOLR index using the SOLR Admin.

I tried using the url and it works but want to know if the same can be done using the Admin..

like image 255
user1050619 Avatar asked Apr 22 '14 19:04

user1050619


People also ask

How do I delete a core in Solr?

For the solr delete command the -c <name> option is required while the other options (parameters) are optional. Delete the named Solr core or collection with default options. Solr will delete the specified core and its associated configuration files at the first port number found.

What is core in Solr?

In Solr, the term core is used to refer to a single index and associated transaction log and configuration files (including the solrconfig. xml and Schema files, among others).

How do you query in Solr?

Trying a basic queryThe main query for a solr search is specified via the q parameter. Standard Solr query syntax is the default (registered as the “lucene” query parser). If this is new to you, please check out the Solr Tutorial. Adding debug=query to your request will allow you to see how Solr is parsing your query.


1 Answers

Use one of the queries below in the Document tab of Solr Admin UI:

XML:

<delete><query>*:*</query></delete> 

JSON:

{'delete': {'query': '*:*'}} 

Make sure to select the Document Type drop down to Solr Command (raw XML or JSON).

like image 127
Nanda Kumar Avatar answered Oct 11 '22 19:10

Nanda Kumar