org.hibernate.search.backend.impl.lucene.works
public final class ByTermUpdateWorkDelegate extends UpdateWorkDelegate
IndexWriter.updateDocument(org.apache.lucene.index.Term, org.apache.lucene.document.Document)
.
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,
org.apache.lucene.index.IndexWriter writer,
IndexingMonitor monitor)
Will perform work on an IndexWriter.
|
public void performWork(LuceneWork work, org.apache.lucene.index.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 Hibernate. All rights reserved.