ExAliyunOts.Search.geo_bounding_box_query

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

geo_bounding_box_query(field_name, top_left, bottom_right)

View Source

Specs

geo_bounding_box_query(
  field_name(),
  top_left :: String.t(),
  bottom_right :: String.t()
) :: map()

Use GeoBoundingBoxQuery 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: geo_bounding_box_query("location", "10,-10", "-10,10")
  ]

Please notice that all geographic coordinates are in "$latitude,$longitude" format.