[Zope-CVS] CVS: Products/ZCTextIndex - BaseIndex.py:1.6
Fri, 17 May 2002 02:09:44 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv9263
Changed something -- it can't be very important, because I already forgot.
=== Products/ZCTextIndex/BaseIndex.py 1.5 => 1.6 ===
+ # Subclass must override.
+ # It's not clear what it should do; so far, it only makes real sense
+ # for the cosine indexer.
def query_weight(self, terms):
- # This method was inherited from the cosine measure, and doesn't
- # make sense for Okapi measures in the way the cosine measure uses
- # it. See the long comment at the end of the file for how full
- # Okapi BM25 deals with weighting query terms.
- return 10 # arbitrary
+ raise NotImplementedError
DICT_CUTOFF = 10