Search index supports TermQuery and TermsQuery.

TermQuery

You can call the TermQuery operation to query data that exactly matches the specified value of a field. When you query a text string, Table Store tokenizes the string and exactly matches any of the tokens.

For example, Table Store tokenizes a text string "tablestore is cool" into "tablestore", "is", and "cool". When you specify any of these tokens as a query string, you can retrieve the query result that contains the token.

query = TermQuery('k', 'key000')
rows, next_token, total_count, is_all_succeed = client.search(
    table_name, index_name, 
    SearchQuery(query, limit=100, get_total_count=True), 
    ColumnsToGet(return_type=ColumnReturnType.ALL)
)

TermsQuery

You can call the TermsQuery operation to query data that exactly matches the specified field values. TermsQuery is similar to TermQuery. The difference is that TermsQuery supports multiple terms. You can retrieve query results that match any of these terms.

query = TermsQuery('k', ['key000', 'key100', 'key888', 'key999', 'key908', 'key1000'])
rows, next_token, total_count, is_all_succeed = client.search(
    table_name, index_name, 
    SearchQuery(query, limit=100, get_total_count=True), 
    ColumnsToGet(return_type=ColumnReturnType.ALL)
)