You're seeing just the function match_query, go back to ExAliyunOts.Search module for more information.
Link to this function

match_query(field_name, text, options \\ [])

View Source


match_query(field_name(), text :: String.t(), options()) :: map()

Use MatchQuery as the nested :query option of :search_query option in ExAliyunOts.search/4.


import MyApp.TableStore
search "table", "index_name",
  search_query: [
    query: match_query("age", 28)

Official document in Chinese | English


  • :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's Or, it means that as long as several terms after the participle are partially hit, they are considered hit this query.