Multiple Geo_point [Elasticsearch]

141 Views Asked by At

i am creating a list of geo position in elasticsearch wonder how to extract number of geopoints and also get the location

  PUT /routes
{
    "mappings":{
        "properties":{
            "name":{
                "type":"text"
            },
            "location":{
                "type": "geo_point"
            }
        }
    }
}

PUT /routes/_doc/1
{
    "name":"Route 1",
    "location":[
            "18.319410,-64.703247",
            "34.297878,-83.824066"
        ]
}

wonder how to get the number of location is 1 or 2 or more and each location

thanks.

0

There are 0 best solutions below