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

Streaming API #17

Closed
jacobrask opened this issue Sep 23, 2013 · 3 comments
Closed

Streaming API #17

jacobrask opened this issue Sep 23, 2013 · 3 comments
Labels
ENHANCEMENT Something could be better

Comments

@jacobrask
Copy link

I haven't checked the code thoroughly, but since search-index uses levelup, a streaming API shouldn't be impossible?

Indexing from an fs or http stream makes a lot of sense to me.

@fergiemcdowall
Copy link
Owner

Yes- a very sensible idea!

@fergiemcdowall
Copy link
Owner

There is now a streaming replication API, see the snapshot function

@fergiemcdowall fergiemcdowall added the ENHANCEMENT Something could be better label Mar 13, 2015
@fergiemcdowall
Copy link
Owner

Thats all the streaming that will be implemented for the time being.

Indexing: Because search-index uses tf-idf to work out relevance, and because tf-idf is indexed fastest in batches, it doesnt really make sense to stream, since all of the batch must be known before processing can take place. HOWEVER- when there are other ways to define sorting, then streaming may make sense.

Searching: Search results are also returned in batches with associated metadata. If there was some use case where gigantic search results should be returned and then streamed through then it would be worth implementing this feature. There would need to be a good use case though.

At the moment REPLICATION is a great use case for streaming, and the streaming API for replication is currently in place

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

No branches or pull requests

2 participants