[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.32

Guido van Rossum guido@python.org
Wed, 14 Aug 2002 18:03:51 -0400


> Fix for issue #505
> ZCTextIndex is now associated by path to its lexicon. After replacing a lexicon used by an index, clear the index to make it use the new lexicon.

So the semantics are that when you replace the lexicon, the index is
reset to empty, right?  Why not create a new index instead?  Then the
lexicon could be internal to the index.  Sharing lexicons doesn't
sound like a probable use case, the more I think about it.

--Guido van Rossum (home page: http://www.python.org/~guido/)