diff --git a/ZCTextIndex.py b/ZCTextIndex.py index d2147b8..da7f581 100644 --- a/ZCTextIndex.py +++ b/ZCTextIndex.py @@ -20,17 +20,16 @@ from OFS.SimpleItem import SimpleItem from Globals import DTMLFile, InitializeClass -from Interface import verify_class_implementation from AccessControl.SecurityInfo import ClassSecurityInfo -from Products.PluginIndexes.common.PluggableIndex \ - import PluggableIndexInterface +from Products.PluginIndexes.common.PluggableIndex import \ + PluggableIndexInterface from Products.PluginIndexes.common.util import parseIndexRequest from Products.ZCTextIndex.OkapiIndex import OkapiIndex from Products.ZCTextIndex.ILexicon import ILexicon -from Products.ZCTextIndex.Lexicon \ - import Lexicon, Splitter, CaseNormalizer, StopWordRemover +from Products.ZCTextIndex.Lexicon import \ + Lexicon, Splitter, CaseNormalizer, StopWordRemover from Products.ZCTextIndex.NBest import NBest from Products.ZCTextIndex.QueryParser import QueryParser @@ -129,6 +128,9 @@ def getEntryForObject(self, documentId, default=None): get_word = self.lexicon.get_word return [get_word(wid) for wid in word_ids] + def uniqueValues(self): + raise NotImplementedError + ## The ZCatalog Index management screen uses these methods ## def numObjects(self):