Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB location field type is identified as boolean #575

Open
mohit3081989 opened this issue Jan 21, 2016 · 0 comments
Open

MongoDB location field type is identified as boolean #575

mohit3081989 opened this issue Jan 21, 2016 · 0 comments

Comments

@mohit3081989
Copy link

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

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant