[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.44

Andreas Jung andreas@digicool.com
Mon, 25 Feb 2002 18:47:07 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv5766

Modified Files:
      Tag: ajung-textindexng-branch
	TextIndexNG.py 
Log Message:
fixed broken phrase search



=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.43 => 1.2.2.44 ===
             distance is one and we only search to the right
         """
-        return apply(self.txNear,sets,{'distance':1,'bidirectional':1}) 
+        return apply(self.txNear,sets,{'distance':1,'bidirectional':0}) 
 
 
     def txNear(self, *sets, **kw):
@@ -720,7 +720,8 @@
             a near search
         """
 
-        debug('checkPositionMap')
+        debug('checkPositionMap (distance=%d, bidirectional=%d)' % \
+                (nearDistance,bidirectional))
 
         # a posMap is a list of tuples (word, IISet() ), where
         # the IISet is a list of posititions of that word inside