public interface IndexIndexer
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<?> |
add(DocumentReferenceProvider referenceProvider,
DocumentContributor documentContributor,
DocumentCommitStrategy commitStrategy,
DocumentRefreshStrategy refreshStrategy)
Add a document to the index, assuming that the document is absent from the index.
|
CompletableFuture<?> |
delete(DocumentReferenceProvider referenceProvider,
DocumentCommitStrategy commitStrategy,
DocumentRefreshStrategy refreshStrategy)
Delete a document from the index.
|
CompletableFuture<?> |
update(DocumentReferenceProvider referenceProvider,
DocumentContributor documentContributor,
DocumentCommitStrategy commitStrategy,
DocumentRefreshStrategy refreshStrategy)
Update a document in the index, or add it if it's absent from the index.
|
CompletableFuture<?> add(DocumentReferenceProvider referenceProvider, DocumentContributor documentContributor, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
referenceProvider - A source of information about the identity of the document to add.documentContributor - A contributor to the document, adding fields to the indexed document.commitStrategy - How to handle the commit.refreshStrategy - How to handle the refresh.CompletableFuture that completes once the document is added.CompletableFuture<?> update(DocumentReferenceProvider referenceProvider, DocumentContributor documentContributor, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
referenceProvider - A source of information about the identity of the document to update.documentContributor - A contributor to the document, adding fields to the indexed document.commitStrategy - How to handle the commit.refreshStrategy - How to handle the refresh.CompletableFuture that completes once the document is updated.CompletableFuture<?> delete(DocumentReferenceProvider referenceProvider, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
referenceProvider - A source of information about the identity of the document to delete.commitStrategy - How to handle the commit.refreshStrategy - How to handle the refresh.CompletableFuture that completes once the document is deleted.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.