To get you started with the SEARCH method (DASL), your request body
could be something like this:
<d:searchrequest xmlns:d="DAV:">
<d:basicsearch>
<d:select>
<d:prop><d:foo/></d:prop>
</d:select>
<d:from>
<d:scope>
<d:href>/slide/files/</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:is-collection/>
</d:where>
</d:basicsearch>
</d:searchrequest>
Note the depth parameter within.
Another, less powerfull solution would be a simple PROPFIND. You can
do that similarly with a depth of 0, 1 or infinity. Of course you'd
have to filter the non collection resources within your own code.
Regards,
Ingo
> Hi,
>
> I'd suggest to use DASL. There is a generic implementation within the slide
> kernel.
>
> Regards,
> Martin
>
> -----Original Message-----
> From: stuart macpherson [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 4. September 2003 00:24
> To: [EMAIL PROTECTED]
> Subject: Search facility - document iterator
>
>
> I am implementing a search facility for my doc store, and I would like to
> know what are people's thoughts on the best way to iterate through the store
> (doing PROPFINDs on each doc as it goes). Obviously you can check if each
> resource is a collection, and tif so, then enumerate its children (as the
> webdav servlet does when doing directory listings)... but I don't just want
> to look at the children of one collection, I want to look at every
> (non-collection) node i.e. document. Is there some kind of 'depth' flag...
> or some other way of basically saying
>
> while (moreDocsInStore) {
> String currentResource = (String) resources.nextElement();
>
> while (moreQueryKeys) {
> String prop = currentResource.getProperty(foo);
> //do some checks against query keys, and give it a hit score
> }
> }
>
> I know the logic to do everything except the iteration thu each doc
> regardless of its parent. Any help would be much appreciated.
>
> Regards
> stu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]