ZCatalog and phrase searching
hello all, question is about how exactly zcatalog does phrase searching. from going thru the source, i am having a heck of a time trying to find where it actually does something with the search string (so i can tell how it uses it to search). the problem is that there is a requirement to be able to search for "string exactly like this", and we are using zcatalog to search over our zope content objects. now from how it is now, i am uncertian that if 1) zcatalog can do that and 2) if it can, how?. it seems to search for "string" AND "exactly" AND "like" AND "this" when that is not the desired behavior. we want it to be 4 words treated as one entity to search on, and not 4 seperate entities. if i have communicated well enough across, can you tell me if this is possible with zcatalog, and if so how do it do it? thanks, chris
Hi Chris, Zope 2.6.x does have exact phrase searching through the ZCTextIndex. Versions prior to this do not have this capability, except for an add-on product TextIndexNG which works on Zope 2.5.1 I believe. Michael On Thu, 2003-03-13 at 12:15, Chris Humphries wrote:
hello all, question is about how exactly zcatalog does phrase searching. from going thru the source, i am having a heck of a time trying to find where it actually does something with the search string (so i can tell how it uses it to search). the problem is that there is a requirement to be able to search for "string exactly like this", and we are using zcatalog to search over our zope content objects. now from how it is now, i am uncertian that if 1) zcatalog can do that and 2) if it can, how?. it seems to search for "string" AND "exactly" AND "like" AND "this" when that is not the desired behavior. we want it to be 4 words treated as one entity to search on, and not 4 seperate entities. if i have communicated well enough across, can you tell me if this is possible with zcatalog, and if so how do it do it?
thanks, chris
_______________________________________________ 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 ) -- Michael Lewis <michael@nichestaffing.com> NicheStaffing.com
Phrasesearch depends on the type of text index used. The standard Zope TextIndex does not support phrase search (at least no very reliable). Better choices are TextIndexNG or ZCTextIndex. -aj --On Donnerstag, 13. März 2003 14:15 Uhr -0500 Chris Humphries <chumphries@devis.com> wrote:
hello all, question is about how exactly zcatalog does phrase searching. from going thru the source, i am having a heck of a time trying to find where it actually does something with the search string (so i can tell how it uses it to search). the problem is that there is a requirement to be able to search for "string exactly like this", and we are using zcatalog to search over our zope content objects. now from how it is now, i am uncertian that if 1) zcatalog can do that and 2) if it can, how?. it seems to search for "string" AND "exactly" AND "like" AND "this" when that is not the desired behavior. we want it to be 4 words treated as one entity to search on, and not 4 seperate entities. if i have communicated well enough across, can you tell me if this is possible with zcatalog, and if so how do it do it?
thanks, chris
_______________________________________________ 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 (3)
-
Andreas Jung -
Chris Humphries -
Michael Lewis