public class LuceneIndexWriter extends Object implements Closeable
IndexWriter that exposes only some part of it's
functionality that it really needed.
Serves as a base class for ReservingLuceneIndexWriter and
TrackingLuceneIndexWriter.| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(org.apache.lucene.document.Document document) |
void |
close() |
void |
commit() |
void |
commitAsOnline() |
org.apache.lucene.search.SearcherManager |
createSearcherManager() |
void |
deleteDocuments(org.apache.lucene.search.Query query) |
void |
deleteDocuments(org.apache.lucene.index.Term term) |
static boolean |
isOnline(org.apache.lucene.store.Directory directory) |
void |
optimize() |
void |
updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document) |
public static boolean isOnline(org.apache.lucene.store.Directory directory)
throws IOException
IOExceptionpublic void addDocument(org.apache.lucene.document.Document document)
throws IOException,
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
IOExceptionorg.neo4j.kernel.api.exceptions.index.IndexCapacityExceededExceptionpublic void updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
throws IOException,
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
IOExceptionorg.neo4j.kernel.api.exceptions.index.IndexCapacityExceededExceptionpublic void deleteDocuments(org.apache.lucene.index.Term term)
throws IOException
IOExceptionpublic void deleteDocuments(org.apache.lucene.search.Query query)
throws IOException
IOExceptionpublic void optimize()
throws IOException
IOExceptionpublic org.apache.lucene.search.SearcherManager createSearcherManager()
throws IOException
IOExceptionpublic void commit()
throws IOException
IOExceptionpublic void commitAsOnline()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.