Hello,
So you just need to import the mapping file before starting the indexing (or let’s say the replication from Couchbase to Elasticsearch to be more precise). This is done using the command you have described.
You can also use a template file, for example:
curl -XPUT http://localhost:9200/_template/couchbase -d @plugins/transport-couchbase/couchbase_template.json
As you can see here ( https://github.com/couchbaselabs/elasticsearch-transport-couchbase/blob/master/src/main/resources/couchbase_template.json ) the template contains the mapping.
Regards
Tug
@tgrall