A SuffixQuery is a data type that defines the configuration for a suffix query. This query searches for data in an index by specifying a suffix condition, such as searching for a package using the last four digits of a mobile phone number.
Data structure
message SuffixQuery {
optional string field_name = 1;
optional string suffix = 2;
optional float weight = 3;
}
|
Name |
Type |
Required |
Description |
|
field_name |
string |
Yes |
The column name. |
|
suffix |
string |
Yes |
The suffix value. |
|
weight |
float |
No |
The weight of the query condition. |