Basic query
Tablestore SDK for Go supports the following basic query types for search indexes.
|
Query type |
Description |
|
Matches all rows in a table. You can use this query to get the total row count or return random rows. |
|
|
Retrieves rows that exactly match a specified column value, similar to string matching. |
|
|
Retrieves rows whose column value matches at least one of the specified keywords, equivalent to the IN operator in SQL. |
|
|
Retrieves rows whose column value contains a specified prefix. |
|
|
Retrieves rows whose column value matches a string that contains wildcard characters. |
|
|
Retrieves rows whose column value falls within a specified range. |
|
|
Also called a NULL query or NULL-value query. Determines whether a specific column exists in a row, which is useful for sparse data. |
|
|
Collapses the result set based on a specific column so that only one row per distinct value is returned, ensuring diversity in the results. |
|
|
Geo queries include the following types:
|
|
|
Queries the child rows of nested fields. |