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

Packages that use IndexDeletionPolicy
org.apache.lucene.index Code to maintain and access indices. 
 

Uses of IndexDeletionPolicy in org.apache.lucene.index
 

Classes in org.apache.lucene.index that implement IndexDeletionPolicy
 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
static IndexReader IndexReader.open(Directory directory, IndexDeletionPolicy deletionPolicy)
          Expert: returns a read/write IndexReader reading the index in the given Directory, with a custom IndexDeletionPolicy.
static IndexReader IndexReader.open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly)
          Expert: returns a read/write or read only IndexReader reading the index in the given Directory, with a custom IndexDeletionPolicy.
static IndexReader IndexReader.open(IndexCommit commit, IndexDeletionPolicy deletionPolicy)
          Expert: returns a read/write 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)
          Expert: returns a read/write or read only 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
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, 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-2008 Apache Software Foundation. All Rights Reserved.