Hi, I have got a relatively simple question is should seem. The repository currently contains a variety of items. I need to retrieve all of them from a certain start point that have a non empty string value for a property.
This is the DASL that I use but has no results: <?xml version="1.0" encoding="utf-8" ?> <d:searchrequest xmlns:h="http://hippo.nl/cms/1.0" xmlns:d="DAV:" xmlns:s="http://jakarta.apache.org/slide/"> <d:basicsearch> <d:select> <d:prop> <s:nrHits/> <h:myprop/> <h:UID/> .... .... </d:prop> </d:select> <d:from> <d:scope> <d:href>content/documents/somedir</d:href> <d:depth>Infinity</d:depth> </d:scope> </d:from> <d:where> <d:and> <d:not> <d:is-collection/> </d:not> <d:not> <d:eq> <d:prop><h:myprop/></d:prop> <d:literal></d:literal> </d:eg> </d:not> </d:and> </d:where> </d:basicsearch> </d:searchrequest> As I interpreted the where clause it would say get all items that are not a collection and have a value other than an empty string for property myprop. Is there perhaps a special definition for an empty string? Changing the were clause into: <d:where> <d:and> <d:not> <d:is-collection/> </d:not> <d:is-defined> <d:prop><h:myprop/></d:prop> </d:is-defined> </d:and> </d:where> results in all documents including the ones with an empty string for property h:myprop. So I can get get results. Any help is appreciated! Æde _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/******************************************** 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
