SuffixQuery specifies the suffix query configurations. You can perform a suffix query to query data in a search index by specifying suffix conditions. For example, you can query packages based on 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;
}
Parameter | Type | Required | Description |
field_name | string | Yes | The name of the column. |
suffix | string | Yes | The suffix. |
weight | float | No | The weight configurations of the query condition. |