In the introductory webinar at https://www.elastic.co/webinars/getting-started-elasticsearch?storm=start-page&iesrc=ctr, the part where he explains how to do geo based search no longer works.
(The commands he uses are here, looping back to redo the bulk add after creating the mappings manually)
You get the following error both before and after you have specified the mappings:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "failed to find mapper for [business_location] for geo distance based sort"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "inspections",
"node": "Agm7P2MYRa2vU7EEAkc6dg",
"reason": {
"type": "illegal_argument_exception",
"reason": "failed to find mapper for [business_location] for geo distance based sort"
}
}
],
"caused_by": {
"type": "illegal_argument_exception",
"reason": "failed to find mapper for [business_location] for geo distance based sort",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "failed to find mapper for [business_location] for geo distance based sort"
}
}
},
"status": 400
}