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

Tim Peters tim.one@comcast.net
Fri, 3 May 2002 16:45:30 -0400


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

Modified Files:
      Tag: TextIndexDS9-branch
	Index.py 
Log Message:
search():  Revert my last change.  It was a braino.


=== Products/ZCTextIndex/Index.py 1.1.2.27 => 1.1.2.28 ===
                 # scaled int * unscaled float / scaled int -> unscaled float
                 w = tf * idf / self._docweight[docid]
-                result[docid] = scaled_int(w)
+                result[docid] = result.get(docid, 0) + scaled_int(w)
         return result
 
     def query_weight(self, terms):