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

Index count #121

Closed
davidll opened this issue Sep 6, 2013 · 3 comments
Closed

Index count #121

davidll opened this issue Sep 6, 2013 · 3 comments

Comments

@davidll
Copy link

davidll commented Sep 6, 2013

Hi,
I have already configured the river and created the index, but I make a count against the index and only return 12 hits (in mongodb I have 500000...).

My configuration:

curl -XPUT "http://localhost:9200/_river/mongodb/_meta" -d '{
"type": "mongodb",
"mongodb": {
"servers":[{ "host": "db1.domain.com", "port": 27207 },{ "host": "db2.domain.com", "port": 27207 },{ "host": "db3.domain.com", "port": 27207 }],
"credentials":[],
"db": "db",
"collection": "users"
},
"index": {
"name": "mongoindex",
"type": "users"
}
}'

Thanks

@richardwilly98
Copy link
Owner

The river uses oplog.rs collection.
Did you create the 500000 records before configuring the replicaset?

See bulk-update option suggested here[1].

[1] - #47 (comment)

@richardwilly98
Copy link
Owner

Does it help?

@davidll
Copy link
Author

davidll commented Sep 10, 2013

Yes, very useful information.

Thanks.

@davidll davidll closed this as completed Sep 10, 2013
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

2 participants