Rest API for enabling advanced filtering in couchbase XDCR

95 views Asked by At

From Documentation, we can see REST API available only for enable XDCR. Do we have REST for Enable advanced filtering like Filter Expression in XDCR?

Please let me know where can i find REST API for Enable advanced filtering like Filter Expression in couchbase XDCR configuration. Current couchbase version is 6.0.0 EE.

1

There are 1 answers

1
Matthew Groves On BEST ANSWER

It doesn't look this is explicitly documented, so I'm not 100% sure if it's supported. But specify filterExpression when you are creating a replication with the /controller/createReplication endpoint.

So, for example, this worked for me when I ran it from Postman:

POST http://localhost:8091/controller/createReplication?fromBucket=travel-sample&toCluster=someOtherCluster&toBucket=travsamp&replicationType=continuous&compressionType=Snappy&filterExpression=myFilterExpression

Check out the Documentation for /controller/createReplication, (and I'm going to see if I can get filterExpression added to it explicitly).