Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting documents from Solr using UI?

Tags:

solr

I want to delete some of the documents from Solr index. Searching google I found

update?stream.body=<delete><query>id:XXXXX</query></delete>&commit=true

but when I am coping it as

http://localhost:8983/solr/#/myIndex_shard1_replica1/http://10.101.3.240:8983/solr/#/solr_Ivision_DTO_shard1_replica1

I am getting error that the page does not exists.

Is there any other way from UI where I can delete the docs.

Thanks

like image 340
Piyush Kumar Avatar asked May 25 '15 12:05

Piyush Kumar


People also ask

How do I delete a collection 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.

How do I access Solr Admin UI?

The path to the Solr Admin UI given above is http://hostname:port/solr , which redirects to http://hostname:port/solr/#/ in the current version. A convenience redirect is also supported, so simply accessing the Admin UI at http://hostname:port/ will also redirect to http://hostname:port/solr/#/ .

Where can you manually add a document within the Solr admin interface After selecting a core?

Visit the homepage of Apache Solr web interface and select the core my_core. Try to retrieve all the documents by passing the query “:” in the text area q and execute the query. On executing, you can observe that the desired data is added to the Solr index.


1 Answers

Now in 7.2 it's a bit different...to delete using the ui:

Go to the core's Documents page. eg: http://[your-host]:8983/solr/#/[your-core-name]/documents

Or

From the admin, select a core from the drop down at the bottom of the left side menu, then click 'Documents' from core menu

Then on the documents page

  • Change Document Type to XML

  • Enter the following XML into the Document(s) text box:

    <delete><query>id:XXXXX</query></delete>

  • Click the Submit Document button

like image 88
zak Avatar answered Nov 22 '22 22:11

zak