Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-23 Thread Andy McKay

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" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 humbleso
 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/
   [EMAIL PROTECTED]
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/
 [EMAIL PROTECTED]   KF6VNC

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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 )



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] ZCatalog: setting default to AND (not OR).

2000-11-22 Thread The Doctor What

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 Godshttp://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-22 Thread Andy McKay

add in an and between terms eg: foo and bar
--
  Andy McKay, Developer.
  ActiveState.
- Original Message - 
From: "The Doctor What" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 2:36 PM
Subject: [Zope] ZCatalog: setting default to AND (not OR).


 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 Godshttp://docwhat.gerf.org/
 [EMAIL PROTECTED]   KF6VNC
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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 )
 


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-22 Thread The Doctor What

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 humbleso
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 Godshttp://docwhat.gerf.org/
  [EMAIL PROTECTED]   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/
[EMAIL PROTECTED]   KF6VNC

___
Zope maillist  -  [EMAIL PROTECTED]
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 )