public static interface Index.Manager extends Closeable
Index
Modifier and Type | Method and Description |
---|---|
void |
deleteIndexDirectory()
Clean out the underlying directory the index is contained in.
|
Index |
getIndex()
Get the current IndexConnection this manager holds.
|
boolean |
isIndexCreated()
Returns true if the index has been created.
|
UnmanagedIndexSearcher |
openSearcher()
Get the current
UnmanagedIndexSearcher from the Index . |
@Nonnull Index getIndex()
IllegalStateException
- if the index directory is not created
etc.@Nonnull UnmanagedIndexSearcher openSearcher()
UnmanagedIndexSearcher
from the Index
.
You must call the close
method in a
finally block once the searcher is no longer needed.
UnmanagedIndexSearcher
boolean isIndexCreated()
void deleteIndexDirectory()
Blow away any indexes that currently live there.
Copyright © 2002-2023 Atlassian. All Rights Reserved.