protected PrepareIndexAndSnapshots ( Lucene.Net.Index.SnapshotDeletionPolicy sdp, |
||
sdp | Lucene.Net.Index.SnapshotDeletionPolicy | |
writer | ||
numSnapshots | int | |
리턴 | void |
protected internal virtual void PrepareIndexAndSnapshots(SnapshotDeletionPolicy sdp, IndexWriter writer, int numSnapshots)
{
for (int i = 0; i < numSnapshots; i++)
{
// create dummy document to trigger commit.
writer.AddDocument(new Document());
writer.Commit();
Snapshots.Add(sdp.Snapshot());
}
}