Send GeoPoint data to elastic Search using client.index method

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.

  1. reason: "can't merge a non object mapping [myloc] with an object mapping"
  2. 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";

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