I am trying to import JSON documents into couchbase using cbimport.
This works fine apart from a single fact that I have no option to set the type field to a fixed value.
cbimport json --cluster couchbase://127.0.0.1 --username Administrator --password password --bucket Data
–dataset file://s:/temp/cars.json --format list --generate-key car::%id%
As you can see I generate the key of the element by using a “prefix” of car and using the id field of the imported document.
The meta information has set type to “json” for each imported document.
I would like to have it set to the type of document at import, which is “car”.
Is there any option to achieve that with cbimport?
Thanks for your help,