All Products
Search
Document Center

Tablestore:WildcardQuery

Last Updated:May 09, 2024

WildcardQuery specifies the configurations of a wildcard query. This query retrieves data that matches a string. The string can contain two types of wildcard characters: asterisks (*) and question marks (?). The asterisk (*) matches a string of any length at, before, or after a search term. The question mark (?) matches a single character in a specific position. The string to match can start with an asterisk (*) or a question mark (?). For example, table*e matches tablestore.

Data structure

message WildcardQuery {
    optional string field_name = 1;
    optional string value = 2;
    optional float weight = 3;
}

Parameter

Type

Required

Description

field_name

string

Yes

The name of the attribute column.

value

string

Yes

The string that contains wildcard characters. The string can be up to 32 characters in length.

weight

float

No

The weight configurations of the query condition.