public final class ByTermUpdateWorkExecutor extends UpdateWorkExecutor
IndexWriter.updateDocument(org.apache.lucene.index.Term, java.lang.Iterable<? extends org.apache.lucene.index.IndexableField>)
.
This is the most efficient way to update the index, but underlying store
must guarantee that the term is unique across documents and entity types.Modifier and Type | Method and Description |
---|---|
void |
performWork(LuceneWork work,
IndexWriterDelegate delegate,
IndexingMonitor monitor)
Will perform work on an IndexWriter.
|
public void performWork(LuceneWork work, IndexWriterDelegate delegate, IndexingMonitor monitor)
LuceneWorkExecutor
performWork
in interface LuceneWorkExecutor
performWork
in class UpdateWorkExecutor
work
- the LuceneWork to apply to the IndexWriter.delegate
- the IndexWriterDelegate to use.monitor
- will be notified of performed operationsCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved