티스토리 뷰
$ curl 'http://localhost/solr/update?commit=true' -H 'Content-type:application/json' -d '[{"id":"1", "name":{"set":"이태원"}}]'
id가 "1"인 문서의 name 필드를 "이태원"으로 수정하여 인덱스
$ curl 'http://localhost/solr/update?commit=true' -H 'Content-type: text/xml' --data-binary @filename.xml
filename.xml의 내용을 인덱스
옵션 설명
--data-binary : curl에게 자료를 이진 형식으로 보냄
-H : curl에게 컨텐츠 타입을 알려줌
댓글