solr 通过URL的方式删除索引数据以及结构

随手一记 2014-12-25

1.删除索引数据

Solr 删除全部索引:http://localhost:8080/solr/update/?stream.body=<delete><query>*:*</query></delete>&stream.contentType=text/xml;charset=utf-8&commit=true

solr 删除指定ID的索引:http://localhost:8080/solr/update/?stream.body=<delete><id>1</id></delete>&stream.contentType=text/xml;charset=utf-8&commit=true

 solr删除id  640以后的索引http://localhost:8080/solr/update/?stream.body=<delete><query>id:[640 TO *]</query></delete>&stream.contentType=text/xml;charset=utf-8&commit=true

2.删除索引结构

相关推荐

lionelf / 0评论 2020-07-28