How can I fetch previous revision of the document?

My scenario is like: (couchbase-server-enterprise_2.2.0)

  1. I’ve Created view, and document in it. Document have revision 1 at this time.
  2. Then Updated document, now document revision changed to 2 from 1.

At this point how can I fetch revision 1 of this document (I’m doing all these stuffs in Couchbase [web] console)?

Couchbase Server doesn’t have API to retrieve document version. Moreover it doesn’t guarantee that it will keep document versions at all.

Thanks for your quick reply…