Esempio n. 1
0
 /// <summary>
 /// Deletes all the documents containing the terms
 /// </summary>
 /// <param name="terms">The terms to be deleted</param>
 /// <returns>A number of documents deleted</returns>
 public virtual int OptimizedDeleteDocuments(Term[] terms)
 {
     lock (directory)
     {
         AssureOpen();
         CreateIndexReader();
         return(indexReader.OptimizedDeleteDocuments(terms));
     }
 }