2009/4/1 Jasha Joachimsthal <[email protected]>

> Hi Nick,
>
> 2009/4/1 Nick Stolwijk <[email protected]>
>
> I've got a strange problem. When I execute a dasl with a where query
>> part like this:
>>
>>                    <d:gte>
>>                        <d:prop>
>>                            <h:web_end />
>>                        </d:prop>
>>                        <d:literal>20090401</d:literal>
>>                    </d:gte>
>>
>> I retrieve documents which have a end date after today. However when I
>> change this query into:
>>
>>                <d:or>
>>                    <d:gte>
>>                        <d:prop>
>>                            <h:web_end />
>>                        </d:prop>
>>                        <d:literal>20090401</d:literal>
>>                    </d:gte>
>>                    <d:eq>
>>                        <d:prop>
>>                            <h:web_end />
>>                        </d:prop>
>>                        <d:literal />
>>                    </d:eq>
>>                </d:or>
>> To retrieve documents which have an enddate after today or an empty
>> enddate, I retrieve no documents.
>>
>> This started to happen after a reload of our database yesterday. After
>> the reload we have removed the index and let it rebuild. Are there any
>> other things we have overseen? How can this happen?
>>
>
>
> It's not possible to search for empty values.
> If you use Hippo Repository 1.2.16 there is a bug in the d:or in some
> cases, see [1]. This has been fixed in Hippo Repository 1.2.17.
>
> [1] http://issues.onehippo.org/browse/HREP-278
>

Sorry this project is not publicly accessible. The details are:
When a query (DASL) must be OR-ed, it is AND-ed in case the dasl contains
either a propcontains or is a range query.

So, for example:

<d:or>
   <d:contains>hippo</d:contains>
   <s:propcontains>
    <d:prop><h:caption></d:prop>
    <d:literal>hippo<d:literal>
  </s:propcontains>
</d:or>

ony a result is returned when the tekst contains 'hippo' AND when the
caption has *hippo*. Obviously, the AND must be OR

-- 
Jasha Joachimsthal

[email protected] - [email protected]

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100
+1 (707) 773-4646
********************************************
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