parameters: (self, **kw)
docstring: Delete the first document containing the specified term. See also L{deleteAll}.
docstring_summary: Delete the first document containing the specified term. See also L{deleteAll}.
docstring_tokens: Delete the first document containing the specified term . See also L { deleteAll } .
function: def delete(self, **kw):
          "Delete the first document containing the specified term. See also L{deleteAll}."
          # Not very efficient for bulk deletes
          # Use deleteAll for bulk deletes
          self._setupSearcher()
          if len(kw) != 1:
              raise RuntimeError, 'one and only one field for the moment'
          field, value = kw.items()[0]
          t = Term(field, value)
          self.searcher.reader.deleteTerm(t)
function_tokens: def delete ( self , * * kw ) : # Not very efficient for bulk deletes # Use deleteAll for bulk deletes self . _setupSearcher ( ) if len ( kw ) != 1 : raise RuntimeError , 'one and only one field for the moment' field , value = kw . items ( ) [ 0 ] t = Term ( field , value ) self . searcher . reader . deleteTerm ( t )