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
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.
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/#/ .
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With