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

Filter logic for river #31

Closed
mryhmln opened this issue Aug 13, 2012 · 2 comments
Closed

Filter logic for river #31

mryhmln opened this issue Aug 13, 2012 · 2 comments

Comments

@mryhmln
Copy link

mryhmln commented Aug 13, 2012

Hi. I am just starting to investigate using the river concept for my mongodb/elasticsearch setup. The thing that I was wondering is if it would be possible to implement a filter on the river such that it will only detect changes that meet a certain criteria, e.g. in my case I don't want elasticsearch to grab a record from my mongodb until a certain field has been set. Is there a way to accomplish this with the current way that the river is implemented? Please advise. And thanks in advance.

richardwilly98 added a commit that referenced this issue Nov 2, 2012
- Fix for #30
- Feature #31 (see mongodb.filter setting).
@richardwilly98
Copy link
Owner

This feature is available in version 1.5.0. I did not have time yet to document it but there is an example of river setting here: https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/master/resources/create-mongodb-river-with-filter.json
It uses "dot notation" query available in MongoDB.

@richardwilly98
Copy link
Owner

Hi,

I am not sure if the last comment done by @egueidan is relevant to the issue.
Can you please clarify?

Thanks,
Richard.

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