public interface PojoIndexer
planning.| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<?> |
add(PojoRawTypeIdentifier<?> typeIdentifier,
Object providedId,
Object entity)
Add an entity to the index, assuming that the entity is absent from the index.
|
CompletableFuture<?> add(PojoRawTypeIdentifier<?> typeIdentifier, Object providedId, Object entity)
Note: depending on the backend, this may lead to errors or duplicate entries in the index if the entity was actually already present in the index before this call.
typeIdentifier - The identifier of the entity type.providedId - A value to extract the document ID from.
Generally the expected value is the entity ID, but a different value may be expected depending on the mapping.
If null, Hibernate Search will attempt to extract the ID from the entity.entity - The entity to add to the index.CompletableFuture reflecting the completion state of the operation.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.