DB/Solr

[Solr] Solr 7.4.0 config set 관리하기

HMHA 2023. 2. 6. 11:31
300x250
반응형
  • /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

 

solr 7.4.0 config set 관리하기

/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

kogun82.tistory.com

 

좋은 글 작성해주신 kogun82님 감사합니다

300x250
반응형