Commit 50f60da8 authored by Tim Peters's avatar Tim Peters

Changed something -- it can't be very important, because I already forgot.

parent bed1daed
...@@ -130,12 +130,11 @@ class BaseIndex(Persistent): ...@@ -130,12 +130,11 @@ class BaseIndex(Persistent):
def _search_wids(self, wids): def _search_wids(self, wids):
raise NotImplementedError raise NotImplementedError
# 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): def query_weight(self, terms):
# This method was inherited from the cosine measure, and doesn't raise NotImplementedError
# 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
DICT_CUTOFF = 10 DICT_CUTOFF = 10
......
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