Lucene.Net.Index.SegmentInfos.Remove C# (CSharp) Method

Remove() public method

Remove the provided SegmentCommitInfo.

WARNING: O(N) cost

public Remove ( Lucene.Net.Index.SegmentCommitInfo si ) : void
si Lucene.Net.Index.SegmentCommitInfo
return void
        public void Remove(SegmentCommitInfo si)
        {
            segments.Remove(si);
        }

Same methods

SegmentInfos::Remove ( int index ) : void

Usage Example

Example #1
0
 public virtual void Remove(string[] segs)
 {
     foreach (string n in segs)
     {
         int idx = GetIdx(n);
         infos.Remove(idx);
     }
     infos.Changed();
     infos.Commit(fsDir);
 }
All Usage Examples Of Lucene.Net.Index.SegmentInfos::Remove