Elasticsearch: access non json keys

#1

We are using XDCR elaticseaerch, works pertty fine.
In our couchbase, we have some scalar keys, e.g. their values are scalars and not json documents. We cannot convert these to json since we use incr with them.

I did not find any way to access their value in couchbase. For example, let say we incr counter for each user opetation and we want to have instagram per user activities.
Is there way to acheive this?

thanks.

#2

Elasticsearch is very picky sometimes. Can you store the non-json in another bucket? Another option would be to change the Couchbase Transport Mapping to check for meta.type == JSON.
https://github.com/couchbaselabs/elasticsearch-transport-couchbase/blob/master/src/main/resources/couchbase_template.json