Commit 1d0d9654 authored by Fred Drake's avatar Fred Drake

Add a comment about some of the data structures.

parent be21d3ca
...@@ -20,12 +20,12 @@ from Products.ZCTextIndex.ILexicon import ILexicon ...@@ -20,12 +20,12 @@ from Products.ZCTextIndex.ILexicon import ILexicon
from Products.ZCTextIndex.StopDict import get_stopdict from Products.ZCTextIndex.StopDict import get_stopdict
class Lexicon: class Lexicon:
__implements__ = ILexicon __implements__ = ILexicon
def __init__(self, *pipeline): def __init__(self, *pipeline):
self.__wids = OIBTree() self.__wids = OIBTree() # word -> wid
self.__words = IOBTree() self.__words = IOBTree() # wid -> word
# XXX we're reserving wid 0, but that might be yagni # XXX we're reserving wid 0, but that might be yagni
self.__nextwid = 1 self.__nextwid = 1
self.__pipeline = pipeline self.__pipeline = pipeline
......
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