Example usage for Java org.apache.lucene.index DirectoryReader fields, constructors, methods, implement or subclass
The text is from its open source code.
Directory | directory The index directory. |
IndexCommit | getIndexCommit() Expert: return the IndexCommit that this reader has opened. |
long | getVersion() Version number when this IndexReader was opened. |
boolean | indexExists(Directory directory) Returns true if an index likely exists at the specified directory. |
boolean | isCurrent() Check whether any new changes have occurred to the index since this reader was opened. |
List | listCommits(Directory dir) Returns all commit points that exist in the Directory. |
DirectoryReader | open(final Directory directory) Returns a IndexReader reading the index in the given Directory |
DirectoryReader | open(final IndexWriter writer) Open a near real time IndexReader from the org.apache.lucene.index.IndexWriter . |
DirectoryReader | open(final IndexCommit commit) Expert: returns an IndexReader reading the index in the given IndexCommit . |
DirectoryReader | open(final Directory directory, final Map Returns a IndexReader reading the index in the given Directory |
DirectoryReader | open(final IndexCommit commit, Map Expert: returns an IndexReader reading the index in the given IndexCommit . |
DirectoryReader | open(final IndexWriter writer, boolean applyAllDeletes, boolean writeAllDeletes) Expert: open a near real time IndexReader from the org.apache.lucene.index.IndexWriter , controlling whether past deletions should be applied. |
DirectoryReader | openIfChanged(DirectoryReader oldReader) If the index has changed since the provided reader was opened, open and return a new reader; else, return null. |
DirectoryReader | openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes) Expert: Opens a new reader, if there are any changes, controlling whether past deletions should be applied. |
DirectoryReader | openIfChanged(DirectoryReader oldReader, IndexCommit commit) If the IndexCommit differs from what the provided reader is searching, open and return a new reader; else, return null. |
DirectoryReader | openIfChanged(DirectoryReader oldReader, IndexWriter writer) Expert: If there changes (committed or not) in the IndexWriter versus what the provided reader is searching, then open and return a new IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null). |