|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILuceneConnection
| Nested Class Summary | |
|---|---|
static interface |
ILuceneConnection.BatchUpdateAction
|
static interface |
ILuceneConnection.Configuration
Provide defaults for a Lucene IndexWriter. |
static interface |
ILuceneConnection.ReaderAction
|
static interface |
ILuceneConnection.SearcherAction
|
static interface |
ILuceneConnection.WriterAction
|
| Field Summary | |
|---|---|
static ILuceneConnection.Configuration |
DEFAULT_CONFIGURATION
The Bonnie default configuration. |
| Method Summary | |
|---|---|
void |
close()
Closes the reader and the writer. |
int |
getNumDocs()
Returns the number of documents in the index. |
boolean |
isIndexCreated()
Returns true if the index has been created. |
org.apache.lucene.search.IndexSearcher |
leakSearcher()
Get the current Searcher from the ILuceneConnection. |
void |
optimize()
Perform an optimize on the index. |
void |
recreateIndexDirectory()
Create or recreate the underlying directory the index is contained in. |
void |
withBatchUpdate(ILuceneConnection.BatchUpdateAction action)
Perform multiple writes to the index. |
void |
withDeleteAndWrites(ILuceneConnection.ReaderAction readerAction,
ILuceneConnection.WriterAction action)
Perform an Atomic delete and add. |
java.lang.Object |
withReader(ILuceneConnection.ReaderAction action)
Idempotent operation. |
void |
withReaderAndDeletes(ILuceneConnection.ReaderAction action)
Delete stuff in the index. |
void |
withSearch(ILuceneConnection.SearcherAction action)
|
void |
withWriter(ILuceneConnection.WriterAction action)
Add (write) documents to the index |
| Field Detail |
|---|
static final ILuceneConnection.Configuration DEFAULT_CONFIGURATION
| Method Detail |
|---|
void withSearch(ILuceneConnection.SearcherAction action)
throws LuceneException
LuceneException
java.lang.Object withReader(ILuceneConnection.ReaderAction action)
throws LuceneException
withReaderAndDeletes(ReaderAction) to perform
index deletes.
LuceneException
void withReaderAndDeletes(ILuceneConnection.ReaderAction action)
throws LuceneException
LuceneException
void withWriter(ILuceneConnection.WriterAction action)
throws LuceneException
LuceneException
void withDeleteAndWrites(ILuceneConnection.ReaderAction readerAction,
ILuceneConnection.WriterAction action)
throws LuceneException
withBatchUpdate(com.atlassian.bonnie.ILuceneConnection.BatchUpdateAction) as
it will use the batch mode configuration, speeding up the writes.
LuceneExceptionvoid withBatchUpdate(ILuceneConnection.BatchUpdateAction action)
batch configuration
settings.
void optimize()
throws LuceneException
LuceneExceptionvoid close()
int getNumDocs()
documents in the index.
boolean isIndexCreated()
void recreateIndexDirectory()
org.apache.lucene.search.IndexSearcher leakSearcher()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||