Issue #182 resolved

AttributeError in TF-IDF Scorer

Anonymous created an issue

Hit when searching.

Traceback is: {{{ /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/searching.py in search(self=<whoosh.searching.Searcher object at 0x26ca450>, q=Term('title', u'credit'), limit=10, sortedby=None, reverse=False, groupedby=None, optimize=True, filter=None, mask=None, groupids=True, terms=False) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/searching.py in search(self=<whoosh.searching.Collector object at 0x281d890>, searcher=<whoosh.searching.Searcher object at 0x26ca450>, q=Term('title', u'credit'), allow=None, restrict=None) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/searching.py in add_matches(self=<whoosh.searching.Collector object at 0x281d890>, q=Term('title', u'credit'), offset=923, scorefn=None) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/searching.py in pull_matches(self=<whoosh.searching.Collector object at 0x281d890>, q=Term('title', u'credit'), offset=923, scorefn=None) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/matching.py in skip_to_quality(self=FilterMatcher(FilePostingReader('_xxxx.L, 3412L, 3066L, 3135L, 3029L]), True, boost=1.0), minquality=4.7672112973838434) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/filedb/filepostings.py in skip_to_quality(self=FilePostingReader('_xxxx.pst', ('title', u'credit'), True, 35), minquality=4.7672112973838434) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/filedb/filepostings.py in block_quality(self=FilePostingReader('_xxxx.pst', ('title', u'credit'), True, 35)) /home/suggest/suggest/cvs/nlputil/prepackage/search/build/bdist.linux-x86_64/egg/whoosh/scoring.py in block_quality(self=<whoosh.scoring.TF_IDFScorer object at 0x281da50>, matcher=FilePostingReader('_xxxx.pst', ('title', u'credit'), True, 35))

<type 'exceptions.AttributeError'>: 'FilePostingReader' object has no attribute 'block_maxweight' args = ("'FilePostingReader' object has no attribute 'block_maxweight'",) message = "'FilePostingReader' object has no attribute 'block_maxweight'" }}}

(Index names obfuscated.)

Should block_maxweight be block_max_weight?

Comments (1)

  1. Log in to comment