richardwilly98 / elasticsearch-river-mongodb

MongoDB River Plugin for ElasticSearch
1.12k stars 215 forks source link

MongoDB location field type is identified as boolean #575

Open mohit3081989 opened 8 years ago

mohit3081989 commented 8 years ago

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 ?