[EMAIL PROTECTED] wrote:
> 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?

What you've got here looks like it should work, particularly since
a search with <d:is-defined> does show results. Any chance you've
changed the indexer? Indexing as "string" is the default. Indexing
as "text" might break <d:eq>, although I'm not entirely sure about
that.

What kind of results do you get when you remove the <d:not>, i.e.:
search only for empty properties?


mcv.
********************************************
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

Reply via email to