ExAliyunOts.Search.match_query
You're seeing just the function
match_query
, go back to ExAliyunOts.Search module for more information.
Specs
match_query(field_name(), text :: String.t(), options()) :: map()
Use MatchQuery as the nested :query
option of :search_query
option in ExAliyunOts.search/4
.
Example
import MyApp.TableStore
search "table", "index_name",
search_query: [
query: match_query("age", 28)
]
Official document in Chinese | English
Options
:minimum_should_match
, the minimum number of terms that the value of the fieldName field in a row contains when Table Store returns this row in the query result, by default it's 1.:operator
, the operator used in a logical operation, by default it'sOr
, it means that as long as several terms after the participle are partially hit, they are considered hit this query.