## Uses of Interface
org.apache.lucene.index.IndexDeletionPolicy

- Packages that use IndexDeletionPolicy
  Package | Description
  --- | ---
  org.apache.lucene.benchmark.byTask.tasks | Extendable benchmark tasks.
  org.apache.lucene.benchmark.utils |
  org.apache.lucene.index | Code to maintain and access indices.

- - ### Uses of IndexDeletionPolicy in org.apache.lucene.benchmark.byTask.tasks

    Methods in org.apache.lucene.benchmark.byTask.tasks that return IndexDeletionPolicy
    Modifier and Type | Method and Description
    --- | ---
    `static IndexDeletionPolicy` | CreateIndexTask.`getIndexDeletionPolicy(Config config)`

  - ### Uses of IndexDeletionPolicy in org.apache.lucene.benchmark.utils

    Classes in org.apache.lucene.benchmark.utils that implement IndexDeletionPolicy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `NoDeletionPolicy`

  - ### Uses of IndexDeletionPolicy in org.apache.lucene.index

    Classes in org.apache.lucene.index that implement IndexDeletionPolicy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `KeepOnlyLastCommitDeletionPolicy` This `IndexDeletionPolicy` implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done.
    `class` | `SnapshotDeletionPolicy` A `IndexDeletionPolicy` that wraps around any other `IndexDeletionPolicy` and adds the ability to hold and later release a single "snapshot" of an index.

    Methods in org.apache.lucene.index with parameters of type IndexDeletionPolicy
    Modifier and Type | Method and Description
    --- | ---
    `static IndexReader` | IndexReader.`open(Directory directory, IndexDeletionPolicy deletionPolicy)` Deprecated. Use `IndexReader.open(Directory, IndexDeletionPolicy, boolean)` instead. This method will be removed in the 3.0 release.
    `static IndexReader` | IndexReader.`open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly)` Expert: returns an IndexReader reading the index in the given Directory, with a custom `IndexDeletionPolicy`.
    `static IndexReader` | IndexReader.`open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)` Expert: returns an IndexReader reading the index in the given Directory, with a custom `IndexDeletionPolicy`.
    `static IndexReader` | IndexReader.`open(IndexCommit commit, IndexDeletionPolicy deletionPolicy)` Deprecated. Use `IndexReader.open(IndexCommit, IndexDeletionPolicy, boolean)` instead. This method will be removed in the 3.0 release.
    `static IndexReader` | IndexReader.`open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly)` Expert: returns an IndexReader reading the index in the given Directory, using a specific commit and with a custom `IndexDeletionPolicy`.
    `static IndexReader` | IndexReader.`open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)` Expert: returns an IndexReader reading the index in the given Directory, using a specific commit and with a custom `IndexDeletionPolicy`.

    Constructors in org.apache.lucene.index with parameters of type IndexDeletionPolicy
    Constructor and Description
    `IndexWriter(Directory d, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)` Expert: constructs an IndexWriter with a custom `IndexDeletionPolicy`, for the index in `d`.
    `IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)` Expert: constructs an IndexWriter with a custom `IndexDeletionPolicy`, for the index in `d`, first creating it if it does not already exist.
    `IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl, IndexCommit commit)` Expert: constructs an IndexWriter on specific commit point, with a custom `IndexDeletionPolicy`, for the index in `d`.
    `IndexWriter(Directory d, boolean autoCommit, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,boolean,IndexDeletionPolicy,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
    `IndexWriter(Directory d, boolean autoCommit, Analyzer a, IndexDeletionPolicy deletionPolicy)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,IndexDeletionPolicy,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
    `SnapshotDeletionPolicy(IndexDeletionPolicy primary)`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.