Closed shan2k6 closed 3 years ago
The example from the README that uses SearchIndex
isn't meant to be used a production code, it's just there to be an example of how a hypothetical SearchIndex
class might absorb batches of messages as they were received by the consumer's #each_batch
method. That's why the comment refers to it as a "mock" index.
Could you give a shot at rewriting the documentation to make that clearer?
If this is a bug report, please fill out the following:
Please verify that the problem you're seeing hasn't been fixed by the current
master
of ruby-kafka.Steps to reproduce
Error
ruby batch.rb Traceback (most recent call last): batch.rb:7:in `': uninitialized constant SearchIndex (NameError)
Looks like method ' SearchIndex' is not available