[Zope-Checkins] CVS: Zope2 - UnTextIndex.py:1.41
Chris McDonough
chrism@digicool.com
Mon, 19 Mar 2001 19:50:01 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory korak:/home/chrism/sandboxes/TrunkBranch/lib/python/SearchIndex
Modified Files:
UnTextIndex.py
Log Message:
Changed default query operator from 'OR' to 'AND' (much improved search results).
--- Updated File UnTextIndex.py in package Zope2 --
--- UnTextIndex.py 2001/03/17 18:59:03 1.40
+++ UnTextIndex.py 2001/03/20 00:50:00 1.41
@@ -93,6 +93,7 @@
__version__ = '$Revision$'[11:-2]
+
import string, regex, regsub, ts_regex
import operator
@@ -527,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