[Zope] catalog query

sean.upton@uniontrib.com sean.upton@uniontrib.com
Tue, 29 Apr 2003 08:12:17 -0700


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-----
=46rom: 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=
=20
<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 Du=
blin
> Core fields. Is it the expected behaviour ? is it possible to chang=
e it ?
>
> It seems that portal_catalog has many parameters, is there one to c=
hange
> 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-announ=
ce
>  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 )