@ThreadSafe public class DefaultIndexEngine extends Object
IndexSearcher
and Writer
.
Gets passed searcher and writer factories that create new instances of these when required.
Modifier and Type | Class and Description |
---|---|
static class |
DefaultIndexEngine.FlushPolicy
How to perform an actual write to the writer.
|
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean (wipe) the index.
|
void |
close()
Wait till any open Searchers are closed and then close the connection.
|
org.apache.lucene.search.IndexSearcher |
getSearcher()
leak a
IndexSearcher . |
void |
write(Index.Operation operation) |
@Nonnull public org.apache.lucene.search.IndexSearcher getSearcher()
IndexSearcher
. Must get closed after usage.IndexSearcher
that reflects the latest writes to the index.public void clean()
public void write(@Nonnull Index.Operation operation) throws IOException
IOException
public void close()
Copyright © 2002-2015 Atlassian. All Rights Reserved.