I am trying to send geolocation as location:{"lat": 19.07, "lon": 72.87} , and i have mapped location as geo_point in index. I am getting following error.
- reason: "can't merge a non object mapping [myloc] with an object mapping"
- root_cause: [{type: "illegal_argument_exception",…}]
Can you please let me know how to map geopoints to send it to elk stack from ReactJs
Reactjs module "import Elasticsearch from "Elasticsearch";