# solr全文檢索
[toc]
## solr的configsets設定檔
Please follow below steps to create our own configsets and create a collection using these configurations for Solr Cloud mode.
1. ```sudo cp -R _default/ db_config```
2. 編輯設定檔 solrconfig.xml, DIHconfigfile.xml and schema.xml(managed_schema)
3. Create a zip file of new configurations
(cd ${SOLR_INS}/configsets/db_config/conf && zip -r - *) > db_config_set.zip
4. 將設定檔.zip 上傳至ZooKeeper
:::info
curl -X POST --header "Content-Type:application/octet-stream" --data-binary @db_config_set.zip "http://your_host_ip:8983/solr/admin/configs?action=UPLOAD&name=db_config_set"
:::
Once the upload is successful we could see our new configset while creating new collection in Solr Admin webpage. Creating custom configsets is useful while working on data import tasks.
[參照](https://lucene.apache.org/solr/guide/8_1/configsets-api.html)