public interface IndexAccessor
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_LAST_GENERATION |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.IndexSearcher |
acquireIndexSearcher() |
void |
addDocument(org.apache.lucene.document.Document document) |
void |
addDocuments(java.util.Collection<org.apache.lucene.document.Document> documents) |
void |
close() |
void |
delete() |
void |
deleteDocuments(org.apache.lucene.index.Term term) |
void |
dumpIndex(java.io.OutputStream outputStream) |
long |
getCompanyId() |
long |
getLastGeneration() |
org.apache.lucene.store.Directory |
getLuceneDir() |
void |
invalidate() |
void |
loadIndex(java.io.InputStream inputStream) |
void |
releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher) |
void |
updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document) |
static final long DEFAULT_LAST_GENERATION
org.apache.lucene.search.IndexSearcher acquireIndexSearcher()
throws java.io.IOException
java.io.IOExceptionvoid addDocument(org.apache.lucene.document.Document document)
throws java.io.IOException
java.io.IOExceptionvoid addDocuments(java.util.Collection<org.apache.lucene.document.Document> documents)
throws java.io.IOException
java.io.IOExceptionvoid close()
void delete()
void deleteDocuments(org.apache.lucene.index.Term term)
throws java.io.IOException
java.io.IOExceptionvoid dumpIndex(java.io.OutputStream outputStream)
throws java.io.IOException
java.io.IOExceptionlong getCompanyId()
long getLastGeneration()
org.apache.lucene.store.Directory getLuceneDir()
void invalidate()
void loadIndex(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionvoid releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
throws java.io.IOException
java.io.IOExceptionvoid updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
throws java.io.IOException
java.io.IOException