Thanks for the useful information provided here. I was able to update CouchBase template following the example here.
I have a requirement.
(1) In Couch Base we have different types of documents(Different JSON structure )
(2) I want to use Elastic search to query few attributes.
(3) In Couch base all documents do not store these attributes
(4) So Replicating(XDCR) all the document in Elastic Search is irrelevant
(5) Is there any way we can filter irrelevant document before putting them into Elastic Search using plugin.
Thanks a lot