ExAliyunOts.Search.terms_query
You're seeing just the function
terms_query
, go back to ExAliyunOts.Search module for more information.
Specs
terms_query(field_name(), terms :: list()) :: map()
Use TermsQuery 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: terms_query("age", [28, 29, 30])
]