Either a) fiddle with ZCatalog so it does or b) add in an "and" in between search terms before the catalog a crude way could be _.string.join(_.string.split(_.str(query),' '), ' and ' ) And thanks for the holiday wishes but we had Thanksgiving a month ago in Canada :) -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "The Doctor What" <docwhat@gerf.org> To: <zope@zope.org> Sent: Wednesday, November 22, 2000 8:12 PM Subject: Re: [Zope] ZCatalog: setting default to AND (not OR).
I'm sorry. I seem to have not explained myself very well.
I want ZCatalog to use AND by default. I think the extended behaviour, being able to AND and OR keywords together is fine. I'm only concerned with the default behaviour (with *no* OR or AND keywords).
When I first used zope.org's search engine, I couldn't figure out why if searched for "zcatalog siteaccess" it gave me (seemingly) every article on the site except the one(s) I wanted.
It's because I expected AND to be the default (the union) of the two terms, not an OR list. Frankly, I don't think OR is useful at all by it self. It's usually with an AND that it's most useful.
But that's just my humble opinion. Oh wait, I don't do humble....so that's just my opinion. ;-)
I wish everyone a happy holiday, whether it's Thanksgiving or "Laborday/Thanksgiving" (as NPR said Japan was having).
Ciao!
All good usability books (I'm going to just cite one: "Designing Web Usability: The Practice of Simplicity" by Jakob Nielsen http://www.useit.com/jakob/webusability/ ) say searches should be ANDed by default.
ZCatalog is ORed by default. How do I change this behavior?
Ciao!
-- Room Service? Send up a larger room. -- Groucho Marx
The Doctor What: Guru to the Gods http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC
-- Now is the time for all good men to come to. -- Walt Kelly
The Doctor What: <fill in the blank> http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )