You can definitely do what you described there. You would do both with views in Couchbase Server 2.0.
For example, a general method when looking for a date range is to emit a JSON array from your display function in the view. This will give you something like: [2012, 5, 11, 16, 27, 41]
Since when you request a view, the JSON array is a valid place for the key to start and end the key, you can specify this range.
Similarly, retrieving all the attributes that you selected each of them from the map function using doc _id. Then, using one of the Couchbase SDKs , you can set the include docs option when prompted, and the document will be automatically extracted.
source
share