- /admin/configs?action=CREATE: create a ConfigSet, based on an existing ConfigSet
- /admin/configs?action=DELETE: delete a ConfigSet
- /admin/configs?action=LIST: list all ConfigSets
- /admin/configs?action=UPLOAD: upload a ConfigSet
1). Create ConfigSet Examples
Create a ConfigSet named 'myConfigSet' based on a 'predefinedTemplate' ConfigSet, overriding the immutable property to false.
http://localhost:8983/solr/admin/configs?action=CREATE&name=myConfigSet&baseConfigSet=predefinedTemplate&configSetProp.immutable=false
[결과]
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">323</int>
</lst>
</response>
2). Delete ConfigSet Examples
Delete ConfigSet 'myConfigSet'
http://localhost:8983/solr/admin/configs?action=DELETE&name=myConfigSet
[결과]
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">170</int>
</lst>
</response>
3). Upload ConfigSet Parameters
$ (cd solr/server/solr/configsets/sample_techproducts_configs/conf && zip -r - *) > myconfigset.zip
$ curl -X POST --header "Content-Type:application/octet-stream" --data-binary @myconfigset.zip "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet"
출처 : https://kogun82.tistory.com/182
좋은 글 작성해주신 kogun82님 감사합니다
'DB > Solr' 카테고리의 다른 글
[Solr] 참고 자료 (0) | 2023.02.06 |
---|---|
[Solr] Solr 실행 시 오픈 파일 개수 설정하기 (0) | 2023.02.06 |
[Solr] apache solr-5.3.0 데이터베이스 (MySQL) 연동 및 인덱스 작업 (0) | 2023.02.06 |
[Solr] apache solr-5.3.0 한글 분석기 설치 (0) | 2023.02.06 |
[Solr] 검색엔진/Solrapache solr-5.3.0 설치 및 실행 (0) | 2023.02.06 |