Commit ac419c5b authored by Tim Peters's avatar Tim Peters

search_glob(): nuke the OOV wids (if any) before calling _search_wids.

It's possible to get OOV wids here due to words the lexicon knows
about that the index has no current instances of.
parent 9032867d
......@@ -122,6 +122,7 @@ class BaseIndex(Persistent):
def search_glob(self, pattern):
wids = self._lexicon.globToWordIds(pattern)
wids = self._remove_oov_wids(wids)
return mass_weightedUnion(self._search_wids(wids))
def search_phrase(self, phrase):
......
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