[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex - GlobbingLexicon.py:1.10.6.1 Lexicon.py:1.5.10.1

Andreas Jung andreas@zope.com
Tue, 8 Jan 2002 11:06:10 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv3400

Modified Files:
      Tag: ajung-textindexng-branch
	GlobbingLexicon.py Lexicon.py 
Log Message:
added getWordIdList()


=== Zope/lib/python/Products/PluginIndexes/TextIndex/GlobbingLexicon.py 1.10 => 1.10.6.1 ===
         return digrams
 
+    def getWordIdList(self,words):
+        """ return a list a wordIds for a list of words """
+        return [ self.getWordId(word)   for word in words] 
+
     
     def getWordId(self, word):
         """Provided 'word', return the matching integer word id."""


=== Zope/lib/python/Products/PluginIndexes/TextIndex/Lexicon.py 1.5 => 1.5.10.1 ===
         """
         self.stop_syn = stop_syn
+
+
+    def getWordIdList(self,words):
+        """ return a list a wordIds for a list of words """
+        return [ self.getWordId(word)   for word in words] 
         
 
     def getWordId(self, word):