티스토리 뷰

카테고리 없음

SOLR 명령어 모음

leeted 2016. 1. 13. 15:02

$ 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에게 컨텐츠 타입을 알려줌

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함