All Products
Search
Document Center

OpenSearch:Run search tests

Last Updated:Apr 01, 2026

The Search Test page in the OpenSearch console lets you run ad-hoc queries against your data source—without writing any code. Use it to validate clauses and parameters before wiring them into your application or API calls.

For production integration, see SDK for Java and SDK for PHP.

Prerequisites

Before you begin, ensure that you have:

  • Configured at least one data source for your OpenSearch application

Run a search test

  1. Log on to the OpenSearch console. In the left-side navigation pane, choose Feature Extensions > Search Test.

  2. On the Search Test page, enter a QUERY clause. This is the only required clause.

    image

  3. Click the Plus icon next to Clauses or Parameters to add more clauses or parameters. Select a clause or parameter from the drop-down list, then specify its value.

    image

    image

  4. Click Search to run the test and view the results.

    image

Clauses

The QUERY clause is required. All other clauses are optional and can be added using the Plus icon.

ClauseRequiredReference
QUERYYesQUERY clauses
FILTERNoFILTER clauses
SORTNoSORT clauses
DISTINCTNoDISTINCT clauses
AGGREGATENoAGGREGATE clauses
KVPAIRNoKVPAIR clauses
CONFIGNoCONFIG clauses

Parameters

All parameters are optional. Add them using the Plus icon next to Parameters.

UI labelParameterDescription
Displayed fieldfetch_fieldsFields to display in results. Separate multiple fields with semicolons (;).
Query ruleqpName of the query analysis configuration to apply.
Query policy*(none)*Query policy to apply. Set as needed.
Rough sort expressionfirst_rank_nameName of the rough sort configuration.
Fine sort expressionsecond_rank_nameName of the fine sort configuration.
Search result summary configurationsummarySummary configuration for search results. See Process search queries.
Category predictioncategory_predictionCategory prediction settings. See Category prediction overview.
Raw queryraw_queryOriginal keyword passed in the query clause.
New-search policyre_searchRe-search policy to apply. See Process search queries.
Business informationbizBusiness context information. See Process search queries.
User IDuser_idUser ID from the search application side. See Process search queries.
Search ReqIdfrom_request_idRequest ID of the search request.
A/B testabtestName of the A/B test configuration to apply.
Disabled fielddisableField to disable. For example: disable = qp. See Process search queries.