2

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.

arihant rk
  • 101
  • 5

1 Answers1

0

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).

Matthew Groves
  • 25,181
  • 9
  • 71
  • 121
  • I just created a pull request for this, you might want to keep an eye on it: https://github.com/couchbase/docs-server/pull/174 – Matthew Groves Dec 04 '18 at 15:13