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ébastien 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ébastien 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ébastien 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 )
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ébastien 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ébastien 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ébastien 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 )
participants (2)
-
Andreas Jung -
sean.upton@uniontrib.com