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
BatchDocumentInterface seems extraneous #15
Comments
It's also a bit awkwardly named since it's not a specialisation of |
It's more of just an opportunistic capture of a common pair of methods. There is no real abstraction layer for |
I'd prefer if we get rid of it, if only for the simple reason that it's confusing to have |
OK trying to get my head around this a bit more.
At first I though you could manage to set up an accidental "infinite queue loop" through YAML and DI shenanigans here, where the queue implementation creates jobs, these jobs assume a synchronous API implementation upon execution, but in fact are also set to use the queue implementation, creating more jobs. But Having an interface that encapsulates "process these docs through a queue or synchronously" is a good thing. After going through this, my main gripe is naming. How about |
I'm assuming that all search implementations we're currently looking at can add multiple docs at the same time, I wouldn't know how a production-ready search would work without that feature. Separating this feature out into a separate interface seems too noisy.
The text was updated successfully, but these errors were encountered: