Querying on incremental field
I wanted to use the counters for generating unique Ids. However, I've read on this page:
"Both incr and decr are considered 'binary' methods in that they operate on binary data, not JSON documents. Because of this, keys used by incr and decr cannot be queried or indexed with Couchbase Server 2.0."
So how can I get data by user_id ? or any other query that needs to use the incremental key?
Am I missing something here - you already provided an example with user_id in that page. Again, what I want to achieve is to have an incremental ID for a document, I don't want to use GUID. When I asked you this question about IDs, you told me that I can use incremental numerical field. So if I can't query on it, what's the point?