solr备忘
来源:互联网 发布:淘宝设置运费模板 技巧 编辑:程序博客网 时间:2024/06/06 07:29
删除索引的Collection API(更多参见https://cwiki.apache.org/confluence/display/solr/Collections+API)
http://IP:PORT/solr/admin/collections?action=DELETEREPLICA&collection=IndexName&shard=shardX&replica=core_nodeX
shardX和core_nodeX来源于solr接口
http://IP:PORT/solr/zookeeper?detail=true&path=%2Fcollections%2FIndexName%2Fstate.json&_=1451891955901
把一个分片分为两个:
http://127.0.0.1:8983/solr/admin/collections?action=SPLITSHARD&collection={indexName}&shard=shard1
将一个分片删除:
http://127.0.0.1:8983/solr/admin/collections?action=DELETESHARD&collection={indexName}&shard=shard1_0
报错:
<response><lst name="responseHeader"><int name="status">400</int><int name="QTime">388</int></lst><str name="Operation deleteshard caused exception:">org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: The slice: shard1_0 is currently active. Only non-active (or custom-hashed) slices can be deleted.</str><lst name="exception"><str name="msg">The slice: shard1_0 is currently active. Only non-active (or custom-hashed) slices can be deleted.</str><int name="rspCode">400</int></lst><lst name="error"><str name="msg">The slice: shard1_0 is currently active. Only non-active (or custom-hashed) slices can be deleted.</str><int name="code">400</int></lst></response>
0 0
- solr备忘
- solr备忘
- Solr 查询参数说明备忘
- solr查询参数说明备忘
- Solr应用之电商商品搜索备忘
- 【备忘】大型SpringMVC,Mybatis,Redis,Solr,Nginx,SSM分布式电...
- 【备忘】elk日志分析视频 ELKStack视频教程以及Solr教程
- Solr
- solr
- solr
- solr
- solr
- solr
- Solr
- solr
- solr
- solr
- solr
- React入门(四) 评论模块续-评论表单
- break、continue、return区别
- C语言学习笔记
- 12c Grid Infrastructure 管理资料库(GIMR)
- android studio git忽略文件.gitignore
- solr备忘
- How to get Hidden Column Value in GridView(ASP.net GridView如何获取隐藏列的值)
- error lnk1158 无法运行 mt.exe 解决思路
- Android Fragment 你应该知道的一切
- 附上最少代码的全选
- WEB项目部署到Linux下无法访问html、css、js等静态文件的解决
- cJSON代码阅读(4)——解析JSON数据的流程
- 将博客搬至CSDN
- MySQL max_allowed_packet设置及问题