Beispiel #1
0
 internal void Remove(Term[] deleteTerms)
 {
     lock (_sync)
     {
         foreach (var deleteTerm in deleteTerms)
         {
             var executor = new QueryExecutor20100701();
             var q        = new TermQuery(deleteTerm);
             var lucQuery = LucQuery.Create(q);
             lucQuery.EnableAutofilters = false;
             var result = executor.Execute(lucQuery, true);
             foreach (var lucObject in result)
             {
                 _storage.Remove(lucObject.VersionId);
             }
         }
     }
 }
Beispiel #2
0
 internal void Remove(Term[] deleteTerms)
 {
     lock (_sync)
     {
         foreach (var deleteTerm in deleteTerms)
         {
             var executor = new QueryExecutor20100701();
             var q = new TermQuery(deleteTerm);
             var lucQuery = LucQuery.Create(q);
             lucQuery.EnableAutofilters = false;
             var result = executor.Execute(lucQuery, true);
             foreach (var lucObject in result)
                 _storage.Remove(lucObject.VersionId);
         }
     }
 }