Can you re-post you changed dasl? Are you sure you wrote infinity and not like you wrote below inifinity?
Ard On Wed, Apr 29, 2009 at 3:41 PM, c_balaji <[email protected]> wrote: > > Hi, > Thanks for the response. Tried removing mimiumm depth and updated depth to > inifinity, but still the same result. I've pasted the code fragment below > as well. > > WebdavServiceFactory factory = WebdavServiceFactory.getInstance(); > List<Document> documentList = null; > WebdavService webdavService = factory.getWebdavService( webdavconfig ); > DocumentCollection dc = > webdavService.fetchCollection(webdavService.getBasePath(), query, > includecontent); > if (dc != null) { > documentList = dc.getDocuments(); > } > if (documentList == null || documentList.size()==0) { > Throwable throwable = new Throwable("No content found for search > results"); > throw NoContentFoundException.wrap(throwable); > } > > > > c_balaji wrote: >> >> I’m using JRA to fetch content based on search criteria such as content >> folder, content type, etc. I notice the JRA call to fetch collections does >> not return the entire list of collection in a given content folder. For >> instance, if my content setup as below: >> >> .. \files\default.preview\content\salesdocs >> .. \files\default.preview\content\salesdocs\accounts >> .. \files\default.preview\content\salesdocs\howtos >> .. \files\default.preview\content\salesdocs\products >> >> The FetchCollection JRA call retrieves only the products folder, but skip >> the rest. I’ve pasted the DASL query that I used to retrieve the >> collections >> >> <DAV:searchrequest xmlns:DAV="DAV:" >> xmlns:s="http://jakarta.apache.org/slide/" >> xmlns:h="http://hippo.nl/cms/1.0"> >> <DAV:basicsearch> >> <DAV:select> >> <DAV:allprop/> >> </DAV:select> >> <DAV:from> >> <DAV:scope> >> <DAV:href>salesdocs</DAV:href> >> <DAV:depth>1</DAV:depth> >> <s:minimum-depth>infinity</s:minimum-depth> >> </DAV:scope> >> </DAV:from> >> <DAV:where><DAV:and><DAV:is-collection/></DAV:and></DAV:where> >> <DAV:orderby> >> <DAV:order> >> <DAV:prop><h:index/></DAV:prop> >> <DAV:ascending/> >> </DAV:order> >> </DAV:orderby> >> </DAV:basicsearch> >> </DAV:searchrequest> >> >> If any thoughts, please let me know. >> >> > > -- > View this message in context: > http://www.nabble.com/Question-On-Java-Repository-Adapter-API-tp23290359p23295871.html > Sent from the Hippo CMS development public mailinglist mailing list archive > at Nabble.com. > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > > Searchable archives can be found at: > MarkMail: http://hippocms-dev.markmail.org > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
