Commit 6768705a authored by Chris McDonough's avatar Chris McDonough

Removed assignment to wordMap that called lexicon.items() in...

Removed assignment to wordMap that called lexicon.items() in getEntryForObject.  It was a nonsensical call that must have been detritus from the various overhauls done over time.  Also changed two comments to two methods so they properly say what they're doing.  Thanks to Erik Enge for the bugreports.
parent 08c507ea
......@@ -91,7 +91,7 @@ undo information so that objects can be unindexed when the old value
is no longer known.
"""
__version__ = '$Revision: 1.6 $'[11:-2]
__version__ = '$Revision: 1.7 $'[11:-2]
import string, re
......@@ -270,7 +270,6 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
This takes the objects record ID as it's main argument."""
wordMap = self.getLexicon()._lexicon.items()
results = self._unindex.get(rid, None)
if results is None:
......@@ -287,8 +286,8 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
the number of entries as follows:
1 tuple
2-4 dictionary
5+ bucket.
2-3 dictionary
4+ bucket.
"""
index=self._index
......@@ -333,7 +332,7 @@ class TextIndex(PluggableIndex.PluggableIndex, Persistent,
""" Index an object:
'documentId' is the integer id of the document
'obj' is the objects to be indexed
'obj' is the object to be indexed
'threshold' is the number of words to process between
commiting subtransactions. If 'None' subtransactions are
......
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