public final class UpdateExtWorkDelegate extends UpdateWorkDelegate
IndexWriter.updateDocument(Term, org.apache.lucene.document.Document, org.apache.lucene.analysis.Analyzer)
This is the most efficient way to update the index, but we can apply it only if the Document is uniquely identified
by a single term (so no index sharing across entities or Numeric ids).Modifier and Type | Method and Description |
---|---|
void |
performWork(LuceneWork work,
IndexWriter writer,
IndexingMonitor monitor)
Will perform work on an IndexWriter.
|
public void performWork(LuceneWork work, IndexWriter writer, IndexingMonitor monitor)
LuceneWorkDelegate
performWork
in interface LuceneWorkDelegate
performWork
in class UpdateWorkDelegate
work
- the LuceneWork to apply to the IndexWriter.writer
- the IndexWriter to use.monitor
- will be notified of performed operationsCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved