导入文档:
sh bin/post -c gettingstarted docs/index.html
删除全部文档:
sh bin/post -c gettingstarted -d "<delete><query>*:*</query></delete>"
删除示例:
bin/solr stop -all ; rm -Rf example/cloud/
创建 collection ‘gettingstarted‘:
http://10.172.85.105:8983/solr/admin/collections?action=CREATE&name=gettingstarted&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=gettingstarted
时间: 2024-08-25 11:46:02