Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@hermannsw

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

APIドキュメント

公式チュートリアル

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
1
Help us understand the problem. What are the problem?