elasticsearch-river-mongodb icon indicating copy to clipboard operation
elasticsearch-river-mongodb copied to clipboard

MongoDB location field type is identified as boolean

Open mohit3081989 opened this issue 9 years ago • 0 comments

Hi, I am trying to use river to index mongoDB data in elasticsearch, but after doing :+1:

curl -XPUT "localhost:9200/_river/abc/_meta" -d ' { "type": "mongodb", "mongodb": { "servers": [ { "host": "xxxxxx", "port": 27017 } ], "options": { "secondary_read_preference": true }, "db": "xxxxx", "collection": "xxxx" }, "index": { "name": "abc", "type": "abc" } }'

The mongodb document having field like address.point : [lat, long] with type 2dsphere is indexed with type double in elasticsearch and due to which I am not able to run any geo queries. Can you please help ?

mohit3081989 avatar Jan 21 '16 12:01 mohit3081989