Commit e8920844 authored by Chris McDonough's avatar Chris McDonough

Changed default query operator from 'OR' to 'AND' (much improved search results).

parent f27d0c32
......@@ -91,7 +91,8 @@ undo information so that objects can be unindexed when the old value
is no longer known.
"""
__version__ = '$Revision: 1.40 $'[11:-2]
__version__ = '$Revision: 1.41 $'[11:-2]
import string, regex, regsub, ts_regex
import operator
......@@ -527,7 +528,7 @@ class UnTextIndex(Persistent, Implicit):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment