If the data import function is not configured on the solr4.6 management interface, no data clearing button is displayed. I'm sorry, we didn't have the function of configuring data import online.
Various HTTP requests for cleanup of SOLR data found on the Internet, obtained my solr4.6 for testing, and reported service not found. After reading these requests, they are all run in versions earlier than solr4. I found a solr4.2 HTTP request and changed the parameter to use it.
Http://solr1.chat.com/staff/update? Stream. Body = <Delete> <query> *: * </query> </delete> & stream. contenttype = text/XML; charset = UTF-8 & commit = true
You can change the content before "Update. First, the domain name of your SOLR server, and then the name of your core.
The above method is to clear all data, and the following is to delete by field:
Http://solr1.chat.360buy.com/staff/update? Stream. Body = <Delete> <query> ID: chenxiaowei3 </query> </delete> & stream. contenttype = text/XML; charset = UTF-8 & commit = true
Http://solr1.chat.360buy.com/staff/update? Stream. Body = <Delete> <ID> lihongsheng3 </ID> </delete> & stream. contenttype = text/XML; charset = UTF-8 & commit = true