[Zope-Checkins] CVS: Zope2 - UnTextIndex.py:1.33.2.9

Chris McDonough chrism@digicool.com
Mon, 19 Mar 2001 19:47:31 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory korak:/home/chrism/sandboxes/2_3Branch/lib/python/SearchIndex

Modified Files:
      Tag: zope-2_3-branch
	UnTextIndex.py 
Log Message:
Changed default query operator to 'AND' instead of 'OR' (way improved search results).



--- Updated File UnTextIndex.py in package Zope2 --
--- UnTextIndex.py	2001/03/17 17:57:14	1.33.2.8
+++ UnTextIndex.py	2001/03/20 00:47:31	1.33.2.9
@@ -528,7 +528,7 @@
 
 
 
-    def query(self, s, default_operator=Or, ws=(string.whitespace,)):
+    def query(self, s, default_operator=And, ws=(string.whitespace,)):
         """ This is called by TextIndexes.  A 'query term' which is a
         string 's' is passed in, along with an index object.  s is
         parsed, then the wildcards are parsed, then something is