ExAliyunOts.Search.geo_polygon_query

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

geo_polygon_query(field_name, geo_points)

View Source

Specs

geo_polygon_query(field_name(), geo_points :: list()) :: map()

Use GeoPolygonQuery 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_polygon_query("location", ["11,11", "0,0", "1,5"])
  ]

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