Omit database collection when importing from MongoDB to ElasticSearch

I'm trying to omit a collection from being included when importing from a MongoDB database to ElasticSearch. is being used with a transform file, which has the following code:

t.Source('source', source, '/.*/')
.Save('sink', sink, '/.*/');

Database: user_database_bugtest

Collection to be omitted: users

I assume this is what's not formatted correctly, unless I have to make other changes: user_database_bugtest.users

I used this transform file code:

t.Source("source", source, '/^testcollection$/').Save("sink", sink, "/.*/")

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.