Other Coordinates Support

Hi, We have some coordinates data in this format https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid as they say ( Eastings and Northings Format ) and we use SpatialRecursivePrefixTreeFieldType ( https://cwiki.apache.org/confluence/display/solr/Spatial+Search ) datatype in solr. Do you have any equivalent datatype to support this.

I have tried below settings and it throws error:
{
"mappings" : {
"address" : {
"properties" : {
....
"streetname" : {"type": "string"},
"postcode" : {"type": "string"},
"location": {
"type": "geo_shape",
"tree": "quadtree",
"precision": "1m"
}
}
}
}
}

And if i try to insert record it throws below error - Do you only support lat & long ?
{
"took" : 0,
"errors" : true,
"items" : [
{
"index" : {
"_index" : "xxxxaddress",
"_type" : "address",
"_id" : "1",
"status" : 400,
"error" : {
"type" : "mapper_parsing_exception",
"reason" : "failed to parse [location]",
"caused_by" : {
"type" : "invalid_shape_exception",
"reason" : "Bad X value 437489.01 is not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0)"
}
}
}
}
]
}

And the data i am trying to add through bulk insert is below

{ "index": {"_index": "xxaddress", "_type": "address", "_id": 1} }
{ /* some data */ ,"streetname": "XYZ ROAD", "location": { "type": "point", "coordinates": [ 437489.01, 554815.00] },"postcode": "S12 1QF" }

Here's what we support;
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/geo-point.html
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/geo-shape.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.