solr通过 url创建collection

http://localhost:8983/solr/admin/collections?action=CREATE&name=collection

action=DELETE  是删除

action=RELOAD   是重新加载

创建core

http://localhost:8983/solr/admin/cores?action=create&dataDir=data&config=solrconfig.xml&schema=schema.xml&numShards=1&collection=test_search&collection.configName=test_search&name=test_search&shard=shard1

相关推荐