After you deploy a cluster, you can log on to the OpenSearch Vector Search Edition console and run query tests. When you run a query test, you can specify various query clauses in a query request based on your business requirements.
Procedure
Log on to the OpenSearch Vector Search Edition console. In the left-side navigation pane, click Instances. On the Instances page, find the instance that you want to manage and click Manage in the Actions column. On the page that appears, choose Extended Features > Query Test in the left-side navigation pane.
On the Query Test page, select SQL Query, Havenask Query, or REST API Query from the drop-down list, add query clauses based on your business requirements, and then click Search. The results that meet the specified query conditions are displayed.
Havenask query
If you select Havenask Query from the drop-down list, the query and Clauses fields appear. You must enter a query statement in the query field, and specify the config and cluster clauses. You can add other clauses to retrieve data based on your business requirements.
Results of a sample Havenask query
SQL query
If you select SQL Query from the drop-down list, the query and Clauses fields appear. You must enter a query statement in the query field. Then, click Search.
You can specify the kvpair clause to retrieve data based on your business requirements.
Results of a sample SQL query
RESTful API query
If you select REST API Query from the drop-down list, select an index table from the Index Table drop-down list, enter a query statement in the left-side SQL editor, and then click Search.
The results of a RESTful API query are displayed in the right-side section.
{
"query": "index_id:12"
}Query syntax
For more information about the syntax of SQL queries, see Query syntax.
For more information about the syntax of Havenask queries, see query clause.