If you’re using Couchbase 7 or later, you can derive the topic name from the Couchbase collection where the document is stored. For example, if you put all your Widget documents in the “widget” collection, and your Invoice documents in the “invoice” collection, then just configure the connector like this:
couchbase.topic=${collection}
Your widgets will get published to the “widget” topic, and invoices will get publised to the “invoice” topic.
Thank you @david.nault I have it working (and we would love to use collections but right now the migration cost is enormous).
In any case, logging tells me that the filter is run before source handler. but I also see that there is a passesFilter method in the SourceHandler. Is there any advantage to having an isolated filter class or should I be doing the filter in the SourceHandler class?