mongo-connector icon indicating copy to clipboard operation
mongo-connector copied to clipboard

Is there any way to change field names in Mongo documents?

Open mohit24 opened this issue 7 years ago • 2 comments

I am using Mongo connector with elasticsearch. My collection has a field location like this:

"location" : {
		"longitude" : 77.193398,
		"latitude" : 28.645863
}

I want to use this field as geo_type in elasticsearch but I am unable to do so because elasticsearch has fixed schema for geo_type fields. Following is the expected schema in elasticsearch:

"location" : {
		"lon" : 77.193398,
		"lat" : 28.645863
}

Is there any way to do so in mongo-connector to solve this issue?

mohit24 avatar May 26 '17 12:05 mohit24

I have the same problem too....

f4ct0r avatar Jun 02 '17 08:06 f4ct0r

Hi have you all got any solution?

Rik0253 avatar Dec 30 '20 05:12 Rik0253