首先,我创建了一个名为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有问题。因此,我怎样才能真正删除一个集合?