ExAliyunOts.Search.range_query
You're seeing just the macro
range_query
, go back to ExAliyunOts.Search module for more information.
Use RangeQuery 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: range_query(1 <= "score" and "score" <= 10)
]
Supports
range_query("score" > 1)
range_query("score" >= 1)
range_query("score" < 10)
range_query("score" <= 10)
range_query(1 < "score" and "score" < 10)
range_query(1 <= "score" and "score" <= 10)