Logo Search packages:      
Sourcecode: zope-managableindex version File versions  Download package

def ManagableIndex::ManagableIndex::ManagableIndex::_insertAux (   self,
  index,
  term,
  docId 
) [private]

methods to maintain auxiliary indexes we implement the same optimization as for the main index

index *docId* under *term*.

Definition at line 504 of file ManagableIndex.py.

00504                                           :
    '''index *docId* under *term*.'''
    dl= index.get(term)
    if dl is None: index[term]= docId; return
    if isinstance(dl,int): dl= index[term]= IITreeSet((dl,))
    dl.insert(docId)

  def _removeAux(self, index, term, docId):


Generated by  Doxygen 1.6.0   Back to index