Custome type for Elasticsearch

Hi,
I’m using XDCR replication to sync the data between CB and Elasticsearch, using the couchbase transport plugin for Elasticsearch.
As far as i understand, all documents in Couchbase will come with the type “couchbaseDocument”. But I have different documents types with a specific mapping for each document.

Is there a way to have specific dynamic type instead of the default “couchbaseDocument”?

(where if the json document have a field “type”:“beer” it will be indexed in ES as _type:“beer” and if “type”:“wine” it will be indexed as _type:“wine”)

Thanks

Hi

have you found a solution?

Hello, Please refer to Advanced usage section on ElasticSearch Plugin documentation here - http://docs.couchbase.com/admin/elastic/adv-usage.html.