{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/12050","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12050/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12050/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12050/events","html_url":"https://github.com/elastic/elasticsearch/issues/12050","id":93272669,"number":12050,"title":"A doc has many geo_point fileds","user":{"login":"mouzt","id":1528204,"avatar_url":"https://avatars.githubusercontent.com/u/1528204?v=3","gravatar_id":"","url":"https://api.github.com/users/mouzt","html_url":"https://github.com/mouzt","followers_url":"https://api.github.com/users/mouzt/followers","following_url":"https://api.github.com/users/mouzt/following{/other_user}","gists_url":"https://api.github.com/users/mouzt/gists{/gist_id}","starred_url":"https://api.github.com/users/mouzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouzt/subscriptions","organizations_url":"https://api.github.com/users/mouzt/orgs","repos_url":"https://api.github.com/users/mouzt/repos","events_url":"https://api.github.com/users/mouzt/events{/privacy}","received_events_url":"https://api.github.com/users/mouzt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T12:56:54Z","updated_at":"2015-07-06T13:24:42Z","closed_at":"2015-07-06T13:24:42Z","body":"would like to be able to sort based on the closest matching location in the document\r\nmapper is:(stations is one array filed)\r\n\r\n\"stations\":{\r\n                \"properties\":{\r\n                    \"station_name\":{\"type\":\"string\",\"index\":\"analyzed\"},\r\n                    \"station_position\":{\"type\":\"geo_point\",\"lat_lon\": true},\r\n                    \"type\":{\"type\":\"integer\"}\r\n                }\r\n            }\r\n\r\n\r\nstations: \r\n[\r\n{\r\n    \"station_name\": \"bla bla\",\r\n    \"station_pos\": {\r\n        \"lat\": 39.985303,\r\n       \"lon\": 116.313024\r\n    },\r\n    \"type\": 1\r\n},\r\n{\r\n    \"station_name\": \"bbbbb\",\r\n    \"station_pos\": {\r\n        \"lat\": 34.97503,\r\n       \"lon\": 117.313024\r\n    },\r\n    \"type\": 1\r\n}\r\n]\r\n\r\nI got an Exception :\r\nfailed to find mapper for [station_pos] for geo distance based sort\r\n\r\n\r\n\r\nhow I sort them by distance?"}}