Help us understand the problem. What is going on with this article?

Watson Retrieve and Rankでよく使用するコマンド

More than 3 years have passed since last update.

APIドキュメント

https://www.ibm.com/watson/developercloud/retrieve-and-rank/api/v1/

公式チュートリアル

https://console.bluemix.net/docs/services/retrieve-and-rank/getting-started.html

Commands

  • list clusters
    curl -k -G -u "{username}:{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters"

  • create cluster
    curl -k -X POST -u "{username}:{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters" -d ""

  • del cluster
    curl -k -X DELETE -u "{username}:{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/{cluster_id}"

  • solrの設定ファイルをアップロード
    curl -k -X POST -H "Content-Type: application/zip" -u "{username}:{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/{cluster_id}/config/{作成する設定の名前}" --data-binary @setting_files.zip

  • Collectionの作成
    curl -X POST -u "{username}:{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/{cluster_id}/solr/admin/collections" -d "action=CREATE&name={作成するコレクションの名前}&collection.configName={コレクションに適用したい設定名}"

  • JSON形式で回答データをアップロード

curl -X POST -H "Content-Type: application/json" -u "{username}:{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/{cluster_id}/solr/{collection_name}/update" --data-binary @answers.json

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした