Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected Directory |
IndexModifier.directory
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Directory |
IndexReader.directory()
Returns the directory associated with this index.
|
Directory |
FilterIndexReader.directory() |
Directory |
IndexWriter.getDirectory()
Returns the Directory used by this index.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexWriter.addIndexes(Directory[] dirs)
Merges all segments from an array of indexes into this index.
|
void |
IndexWriter.addIndexesNoOptimize(Directory[] dirs)
Merges all segments from an array of indexes into this index.
|
static boolean |
CheckIndex.check(Directory dir,
boolean doFix)
Returns true if index is clean, else false.
|
static long |
IndexReader.getCurrentVersion(Directory directory)
Reads version number from segments files.
|
static boolean |
IndexReader.indexExists(Directory directory)
Returns
true if an index exists at the specified directory. |
protected void |
IndexModifier.init(Directory directory,
Analyzer analyzer,
boolean create)
Deprecated.
Initialize an IndexWriter.
|
static boolean |
IndexReader.isLocked(Directory directory)
Returns
true iff the index in the named directory is
currently locked. |
static long |
IndexReader.lastModified(Directory directory2)
Returns the time the index in the named directory was last modified.
|
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory.
|
static IndexReader |
IndexReader.open(Directory directory,
IndexDeletionPolicy deletionPolicy)
Expert: returns an IndexReader reading the index in the given
Directory, with a custom
IndexDeletionPolicy . |
String |
MergePolicy.MergeSpecification.segString(Directory dir) |
static void |
IndexReader.unlock(Directory directory)
Forcibly unlocks the index in the named directory.
|
Constructor and Description |
---|
IndexModifier(Directory directory,
Analyzer analyzer,
boolean create)
Deprecated.
Open an index with write access.
|
IndexReader(Directory directory)
Deprecated.
- use IndexReader()
|
IndexWriter(Directory d,
Analyzer a)
Constructs an IndexWriter for the index in
d , first creating it if it does not
already exist. |
IndexWriter(Directory d,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in
d . |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a)
Constructs an IndexWriter for the index in
d , first creating it if it does not
already exist. |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in
d . |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
boolean create,
IndexDeletionPolicy deletionPolicy)
Expert: constructs an IndexWriter with a custom
IndexDeletionPolicy , for the index in d . |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
IndexDeletionPolicy deletionPolicy)
Expert: constructs an IndexWriter with a custom
IndexDeletionPolicy , for the index in d ,
first creating it if it does not already exist. |
Constructor and Description |
---|
IndexSearcher(Directory directory)
Creates a searcher searching the index in the provided directory.
|
Modifier and Type | Class and Description |
---|---|
class |
FSDirectory
Straightforward implementation of
Directory as a directory of files. |
class |
MMapDirectory
File-based
Directory implementation that uses mmap for input. |
class |
RAMDirectory
A memory-resident
Directory implementation. |
Modifier and Type | Method and Description |
---|---|
static void |
Directory.copy(Directory src,
Directory dest,
boolean closeDirSrc)
Copy contents of a directory src to a directory dest.
|
Constructor and Description |
---|
RAMDirectory(Directory dir)
Creates a new
RAMDirectory instance from a different
Directory implementation. |
Modifier and Type | Method and Description |
---|---|
void |
BitVector.write(Directory d,
String name)
Writes this vector to the file
name in Directory
d , in a format that can be read by the constructor BitVector.BitVector(Directory, String) . |
Constructor and Description |
---|
BitVector(Directory d,
String name)
Constructs a bit vector from the file
name in Directory
d , as written by the BitVector.write(org.apache.lucene.store.Directory, java.lang.String) method. |
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.