Search testing

更新时间:
复制 MD 格式

After you upload data, you can start to test searches. The console provides a Search testing page where you can configure query clauses and query parameters. You can also configure search requests on your client for testing. For more information, see the API, Java SDK, and PHP SDK documentation.

This section describes how to use the Search testing page in the console. Click the + button next to a clause or parameter. In the drop-down list that appears, select the required query clause or parameter. Then, enter a value for the selected clause or parameter. Finally, click Search to view the search results.

Procedure

1. Log on to the OpenSearch console. In the navigation pane on the left, choose Feature Extension > Search testing. Enter a required query clause.

image

2. Add more clauses and parameters.

搜索子句

搜索参数

3. The search test results are displayed.4

Clause descriptions

For more information about the query clause, see the query clause documentation.

For more information about the filter clause, see the filter clause documentation.

For more information about the sort clause, see the sort clause documentation.

For more information about the distinct clause, see the distinct clause documentation.

For more information about the aggregate clause, see the aggregate clause documentation.

For more information about the kvpairs clause, see the kvpairs clause documentation.

For more information about using the config clause for pagination, see the config clause documentation.

Parameter descriptions

fetch_fields: Specifies the fields to display. Separate multiple fields with a semicolon (;).

Query analysis rule (qp): Specify the name of the query analysis rule.

Query policy: Specify the query policy.

Rough sort expression (first_rank_name): Specify the name of the rough sort expression.

Fine sort expression (second_rank_name): Specify the name of the fine sort expression.

Search result summary configuration (summary): For more information, see the parameter specification rules document.

Category prediction (category_prediction): For more information, see the parameter specification document.

Original query (raw_query): The original search keyword that is used in the query clause.

Re-search policy (re_search): For more information, see the parameter specification rules document.

Business information (biz): The user ID. For more information, see the parameter specification rules document.

Search request ID (from_request_id): The `request_id` of a previous search request.

User ID (user_id): The ID of the user in the client application.

A/B Test: Specify the name of the A/B test.

Disable parameter (disable): Disables a specified feature. For example, `disable=qp`. For more information, see the parameter specification rules document.