[Zope-CVS] CVS: Products/ZCTextIndex - BaseIndex.py:1.10

Tim Peters tim.one@comcast.net
Fri, 17 May 2002 04:24:25 -0400

Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv10968

Modified Files:
Log Message:
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.

=== Products/ZCTextIndex/BaseIndex.py 1.9 => 1.10 ===
     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):