Commit 87c672c6 authored by Tim Peters's avatar Tim Peters

search_phrase(): cleaned_wids is the same is wids, and it was confusing

to use both after the test to ensure they were the same.
parent 993856e5
...@@ -175,7 +175,7 @@ class BaseIndex(Persistent): ...@@ -175,7 +175,7 @@ class BaseIndex(Persistent):
if len(wids) != len(cleaned_wids): if len(wids) != len(cleaned_wids):
# At least one wid was OOV: can't possibly find it. # At least one wid was OOV: can't possibly find it.
return IIBTree() return IIBTree()
scores = self._search_wids(cleaned_wids) scores = self._search_wids(wids)
hits = mass_weightedIntersection(scores) hits = mass_weightedIntersection(scores)
if not hits: if not hits:
return hits return hits
......
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