Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Support rivers #25

Open
kxepal opened this issue Oct 2, 2014 · 4 comments
Open

Support rivers #25

kxepal opened this issue Oct 2, 2014 · 4 comments

Comments

@kxepal
Copy link

kxepal commented Oct 2, 2014

It would be nice to have support rivers feature. As far as I see it currently missed.

@kxepal
Copy link
Author

kxepal commented Oct 2, 2014

If nobody minds, I'll start work on it since I need in CouchDB river support. And this raises a question: should aioes ship only generic river support, or also it should support specific rivers? Or only official ones? While they are almost shares the same API, few of them implements own specific bits.

@asvetlov
Copy link
Contributor

asvetlov commented Oct 3, 2014

Hi. I doubt that rivers should be part of aioes.
elasticsearch-py has no river api.
API is not well-structured. There is /_river/{river_name}/_meta, meta format is river-specific.

From my perspective better to have specific river support in separate library (using aioes transport of course, as standard aioes client does).
Think also about tests. For CouchDB river tests you need to install CouchDB and river on development box and fix travis CI script. Testing of twitter river may be even more complicated.

@kxepal
Copy link
Author

kxepal commented Oct 6, 2014

That a strange bit for official client. For instance, pyes supports rivers.

I agree that API is too generic, but there are some common bits (as index definition and _meta) which could be used as base for others. If aioes tends to provide exactly the same API and feature set as elasticsearch-py, then probably I have to raise this question for them, right?

As about tests you're right: it would be hard to implement any functional tests without proper installed and configured environment. This makes me agree with you that different rivers have to be implemented in thirdparty projects.

@asvetlov
Copy link
Contributor

asvetlov commented Oct 6, 2014

@kxepal feel free to make third-party library on top of aioes. You really need only for Elasticsearch.transport for accessing to river API.

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

No branches or pull requests

2 participants