home ホーム search 検索 -  login ログイン  | reload edit datainfo version cmd icon diff delete  | help ヘルプ

日記/2011/07/10/cURLでApacheSolrにXMLを送信

日記/2011/07/10/cURLでApacheSolrにXMLを送信

日記 / 2011 / 07 / 10 / cURLでApacheSolrにXMLを送信
id: 998 所有者: msakamoto-sf    作成日: 2011-07-10 23:15:10
カテゴリ:

特にプログラムを作成しなくともお手軽に出来ちゃうのでメモ。

curl --data-binary @utf8-example.xml \
     -H "Content-Type: application/xml; charset=utf-8" \
     http://localhost:8080/solr/update

commitも忘れずに:

curl --data-binary "<commit/>" \
     -H "Content-Type: application/xml; charset=utf-8" \
     http://localhost:8080/solr/update

ファイル指定の場合に、"@"付けるのに気づかなくて30分ほど嵌った。

Windows版のcURLの例:
http://www.paehl.com/open_source/?CURL_7.21.6

他のWin32版:
http://curl.haxx.se/download.html


プレーンテキスト形式でダウンロード
現在のバージョン : 1
更新者: msakamoto-sf
更新日: 2011-07-10 23:19:02
md5:3fc3f84c16abac3c2abd15daeb453734
sha1:1d63982271b0bd1e221386b400694621287fce10
コメント
コメントを投稿するにはログインして下さい。