ExAliyunOts.Search.term_query

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

term_query(field_name, term)

View Source

Specs

term_query(field_name(), term :: String.t()) :: map()

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

Official document in Chinese | English

Example

import MyApp.TableStore

search "table", "index_name",
  search_query: [
    query: term_query("age", 28)
  ]