Package | Description |
---|---|
gate.creole.annic.apache.lucene.index |
Code to maintain and access indices.
|
gate.creole.annic.apache.lucene.search | |
gate.creole.annic.apache.lucene.store |
Binary i/o API, used for all index data.
|
gate.creole.annic.apache.lucene.util |
Some utility classes.
|
gate.creole.annic.lucene |
Modifier and Type | Method and Description |
---|---|
Directory |
IndexReader.directory()
Returns the directory this index resides in.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexWriter.addIndexes(Directory[] dirs)
Merges all segments from an array of indexes into this index.
|
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. |
static boolean |
IndexReader.isLocked(Directory directory)
Returns
true iff the index in the named directory is
currently locked. |
static long |
IndexReader.lastModified(Directory directory)
Deprecated.
Replaced by
IndexReader.getCurrentVersion(Directory) |
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory.
|
static void |
IndexReader.unlock(Directory directory)
Forcibly unlocks the index in the named directory.
|
Constructor and Description |
---|
IndexReader(Directory directory)
Constructor used if IndexReader is not owner of its directory.
|
IndexWriter(Directory d,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in
d . |
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 |
RAMDirectory
A memory-resident
Directory implementation. |
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(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(gate.creole.annic.apache.lucene.store.Directory, java.lang.String) method. |
Constructor and Description |
---|
LuceneIndexSearcher(Directory directory)
Creates a searcher searching the index in the provided directory.
|
Copyright © 2023 GATE. All rights reserved.