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
IOException
public void addDocument(org.apache.lucene.document.Document document) throws IOException, org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
IOException
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
public void updateDocument(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document) throws IOException, org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
IOException
org.neo4j.kernel.api.exceptions.index.IndexCapacityExceededException
public void deleteDocuments(org.apache.lucene.index.Term term) throws IOException
IOException
public void deleteDocuments(org.apache.lucene.search.Query query) throws IOException
IOException
public void optimize() throws IOException
IOException
public org.apache.lucene.search.SearcherManager createSearcherManager() throws IOException
IOException
public void commit() throws IOException
IOException
public void commitAsOnline() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.