Document: Working with Documents URL: https://lenya.zones.apache.org/cms/docu/authoring/docu20/concepts/documents.html Changed by user: Thorsten Scherler (thorsten)
---- Added: /document/body/section[4] <section> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/title <title> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/title/text() FAQ ---- Added: /document/body/section[4]/section <section> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/title <title> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/title/text() What is the preferred method in lenya to get all documents of a certain resource type? ---- Added: /document/body/section[4]/section/p[1] <p> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/p[1]/text() The most performant way is to use Lucene. The query would be: ---- Added: /document/body/section[4]/section/source <source> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/source/@space [attr] space=preserve (http://www.w3.org/XML/1998/namespace) ---- Added: /document/body/section[4]/section/source/text() {http://apache.org/lenya/metadata/document/1.0}resourceType:foobar ---- Added: /document/body/section[4]/section/p[2] <p> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/p[2]/text() See also ---- Added: /document/body/section[4]/section/p[2]/a <a> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/p[2]/a/@href [attr] href=lenya-document:5b454cb0-e986-11dc-b04f-af2277a493d7 (null) ---- Added: /document/body/section[4]/section/p[2]/a/text() https://lenya.zones.apache.org/cms/docu/authoring/docu20/reference/metadata.html#N100BF ---- Added: /document/body/section[4]/section/p[3] <p> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section/p[3]/text() A while ago Andreas started to implement a convenient API to do such queries, see thread "API for document search" on the users list. Maybe we can discuss this again? ---- Added: /document/body/section[4]/comment() <section> <title>FAQ</title> </section> ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
