[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.33

Guido van Rossum guido@python.org
Mon, 6 May 2002 13:03:35 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv3454

Modified Files:
      Tag: TextIndexDS9-branch
	Index.py 
Log Message:
search(): always return an IIBucket.


=== Products/ZCTextIndex/Index.py 1.1.2.32 => 1.1.2.33 ===
             L.append((d2w, scaled_int(idf)))
         L.sort(lambda x, y: cmp(len(x[0]), len(y[0])))
-        result = IIBTree()
+        result = IIBucket()
         for d2w, weight in L:
             dummy, result = weightedUnion(result, d2w, 1, weight)
         return result