Interface IndexWriterDelegator
- All Known Implementing Classes:
IndexWriterDelegatorImpl
public interface IndexWriterDelegator
A component exposing features similar to
IndexWriter,
but simpler to use, and delegated to an actual writer.
This interface also allows easy mocking of the index writer in unit tests.
-
Method Summary
Modifier and TypeMethodDescriptionlongaddDocuments(Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) longdeleteDocuments(org.apache.lucene.index.Term term) longdeleteDocuments(org.apache.lucene.search.Query query) longupdateDocuments(org.apache.lucene.index.Term term, Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs)
-
Method Details
-
addDocuments
long addDocuments(Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) throws IOException - Throws:
IOException
-
updateDocuments
long updateDocuments(org.apache.lucene.index.Term term, Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) throws IOException - Throws:
IOException
-
deleteDocuments
- Throws:
IOException
-
deleteDocuments
- Throws:
IOException
-