You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2015/05/20 18:33:00 UTC

svn commit: r1680631 - /sling/trunk/contrib/nosql/couchbase-resourceprovider/README.md

Author: sseifert
Date: Wed May 20 16:33:00 2015
New Revision: 1680631

URL: http://svn.apache.org/r1680631
Log:
SLING-4381 update README

Modified:
    sling/trunk/contrib/nosql/couchbase-resourceprovider/README.md

Modified: sling/trunk/contrib/nosql/couchbase-resourceprovider/README.md
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/nosql/couchbase-resourceprovider/README.md?rev=1680631&r1=1680630&r2=1680631&view=diff
==============================================================================
--- sling/trunk/contrib/nosql/couchbase-resourceprovider/README.md (original)
+++ sling/trunk/contrib/nosql/couchbase-resourceprovider/README.md Wed May 20 16:33:00 2015
@@ -13,6 +13,21 @@ Configuration on deployment
 * Additionally a factory configuration for "Apache Sling NoSQL Couchbase Resource Provider Factory" defines the root of the resource tree that should be stored in Couchbase
 
 
+Couchbase Views for path-based access
+-------------------------------------
+
+For list and delete operations two couchbase views have to be defined and published in the bucket that is used by the resource provider.
+
+Steps to create those views:
+* Log into Couchbase Console
+* Go to "Views" and select the correct bucket
+* Add a new design document via "Create Development View" and name it "_design/dev_resourceIndex" (the prefix "_design/dev_" is added automatically)
+* Use the name "ancestorPath" for the first view that is created together with the design document
+* Paste the view code from [ancestorPath.js](src/main/couchbase-views/ancestorPath.js) into the editor and save it
+* Create another view named "parentPath", paste the view code from [parentPath.js](src/main/couchbase-views/ancestorPath.js) and save it
+* Publish the design document so the views are production views
+
+
 Run integration tests
 ---------------------
 
@@ -21,3 +36,4 @@ To run the integration tests you have to
 ```
 mvn -Pcouchbase-integration-test -DcouchbaseHosts=localhost:8091 -DbucketName=test integration-test
 ```
+