[Zope] catalog query
Andreas Jung
Andreas Jung <andreas@andreas-jung.com>
Tue, 29 Apr 2003 17:25:47 +0200
I assume you can pass 'operator': 'OR' to the index as index parameter.
-aj
--On Dienstag, 29. April 2003 8:12 Uhr -0700 sean.upton@uniontrib.com =
wrote:
> Subject is a KeywordIndex, and I'm not sure what the appropriate way to =
do
> an 'and' search on a KeywordIndex is, since the default behavior when
> passed two terms is an 'or' type of behavior. Thoguhts?
>
> Sean
>
> -----Original Message-----
> From: Andreas Jung [mailto:andreas@andreas-jung.com]
> Sent: Tuesday, April 29, 2003 6:36 AM
> To: S=E9bastien Georget; zope@zope.org
> Subject: Re: [Zope] catalog query
>
>
> you can *not* pass "kw1 AND kw2" to a FieldIndex. This syntax is only
> available when querying a TextIndex.
>
> -aj
>
> --On Dienstag, 29. April 2003 15:26 Uhr +0200 S=E9bastien Georget
> <sebastien.georget@cenerg.cma.fr> wrote:
>
>> Hi,
>>
>> I'm trying to query my portal_catalog for documents having 'kw1 AND
>> kw2' in the Dublin Core Subject field. It works well when I'm doing
>> full-text queries, but it returns no document when I'm trying on Dublin
>> Core fields. Is it the expected behaviour ? is it possible to change it =
?
>>
>> It seems that portal_catalog has many parameters, is there one to change
>> the default behaviour (match any keyword) to a match-all-keywords
>> behaviour ?
>>
>> thx
>>
>> S=E9bastien Georget
>> http://purl.org/NET/Georget/Sebastien
>>
>>
>> _______________________________________________
>> Zope maillist - Zope@zope.org
>> http://mail.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
>> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )