You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/07 11:35:09 UTC

[Couchdb Wiki] Update of "How_to_store_hierarchical_data" by BrianCandler

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "How_to_store_hierarchical_data" page has been changed by BrianCandler.
The comment on this change is: Linked documents are useful for trees too.
http://wiki.apache.org/couchdb/How_to_store_hierarchical_data?action=diff&rev1=5&rev2=6

--------------------------------------------------

  
  There is some example Python code to handle using the above views to fetch trees available at http://git.paulbonser.com/?p=couchdb.git;a=summary
  
+ == Searching by value and returning associated documents ==
+ 
+ Couchdb 0.11 adds a feature where you can emit a key,value pair linked to a different document ID. Hence it's possible to build a view where you can search for a value V ''and'' also return the ancestors or children for that value in adjacent rows. See [Introduction_to_CouchDB_views#Linked_documents Linked documents]
+