首先,我创建一个名为usercollection的集合
http://xxxxx/solr/admin/collections?action=CREATE&name=usercollection&numShards=3&replicationFactor=3&maxShardsPerNode=3然后我发现了一些错误,所以我删除了它。
http://xxxx/solr/admin/collections?action=DELETE&name=usercollection最后,我想再次创建集合。我发现出了点问题。
`May 16, 2013 8:32:23 PM org.apache.solr.cloud.OverseerCollectionProcessor run
INFO: Overseer Collection Processor: Get the message id:/overseer/collection-queue- work/qn-0000000000 message:{
"operation":"createcollection",
"numShards":"3",
"maxShardsPerNode":"3",
"createNodeSet":null,
"name":"usercollection",
"replicationFactor":"3"}
May 16, 2013 8:32:23 PM org.apache.solr.common.SolrException log
SEVERE: Collection createcollection of createcollection failed:org.apache.solr.common.SolrException: collection already exists: usercollection
at org.apache.solr.cloud.OverseerCollectionProcessor.createCollection(OverseerCollectionProcessor.java:311)
at org.apache.solr.cloud.OverseerCollectionProcessor.processMessage(OverseerCollectionProcessor.java:160)
at org.apache.solr.cloud.OverseerCollectionProcessor.run(OverseerCollectionProcessor.java:112)
at java.lang.Thread.run(Thread.java:662)`所以,我认为集合API有问题,当delete.Thus,我怎么才能真正删除一个集合?
发布于 2015-02-18 18:17:57
遇到了同样的问题,最后通过使用Solr提供的clusterstate.json在动物园管理员中手动编辑和更新zkcli.sh来解决问题。
发布于 2014-11-14 13:50:47
删除集合后,也应该提交(如果使用浏览器,则可以不使用curl )。
curl http://localhost:8080/solr/update -H "Content-type: text/xml" --data-binary '<commit />'...and告诉Solr在此时优化其索引也是一个好主意:
curl http://localhost:8080/solr/update -H "Content-type: text/xml" --data-binary '<optimize />'源http://www.alphadevx.com/a/365-Clearing-a-Solr-search-index
发布于 2013-09-20 11:16:05
您需要更新动物园管理员集合中的clusterstate.json文件。您的云收集信息保存在那里。
https://stackoverflow.com/questions/16579242
复制相似问题