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]
