1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[oneWEX] 類似文書検索をAPIで実行する

Posted at

oneWEXの類似文書検索をAPIで実行する方法です。

1 oneWEXの類似文書検索

oneWEXのマイナー画面で指定した文書の「類似文書」ボタンをクリックすると、類似文書を検索することができます。
image.png

2 APIの実行方法

類似文書検索をAPIで実行します。

① 文書IDの確認

文書IDは、マイナー画面で指定した文書の「すべてのフィールドを表示」ボタンをクリックすると確認できます。
image.png

② コレクションIDの確認

コレクションIDは、管理画面でコレクションを選択し、コレクションのプロパティで確認できます。
image.png

③ API 画面へアクセス

https://(サーバのホスト名またはIPアドレス)/docs/ にアクセスします。この画面からREST APIを試すことができます。
「Authorize」をクリックしてサインイン資格情報を入力し「Done」をクリックします。

④ APIの実行

「Exploration」 > 「GET /api/v1/explore/{collectionId}/query Searches for documents」を開きます。
「Parameters」に以下を入力し、「Execute」をクリックします。

パラメータ 入力値
collecionId コレクションIDを指定します
q *を指定します
rq {!sss}を指定します
qdocid 文書IDを指定します
image.png

⑤ 発行されたAPIと結果の確認

「Responses」 でAPIと実行結果が確認できます。
image.png

以上です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?