def scorer(self, searcher, fieldname, text, qf=1):
"""Returns an instance of :class:`whoosh.scoring.Scorer` configured
for the given searcher, fieldname, and term text.
"""
raise NotImplementedError(self.__class__.__name__)
i do not know the arguments in scorer function.Where are they coming from?and the same to the function under this sentence.If i want to get the term frequences in all collections,not the weight in current doc.How can i do?
def _score(self, weight, length):
# Override this method with the actual scoring function
raise NotImplementedError(self.__class__.__name__)