Class IndexDocument
java.lang.Object
io.fluxcapacitor.common.api.search.bulkupdate.IndexDocument
- All Implemented Interfaces:
BulkUpdate
A bulk update operation that indexes (inserts or replaces) a document in the store.
The object
represents the document content. The id
uniquely identifies the document
within the given collection
.
If the document already exists, it will be replaced.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.common.api.search.BulkUpdate
BulkUpdate.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexDocument
fromDocument
(SerializedDocument document) Creates a bulk index operation from aSerializedDocument
.getType()
Indicates the operation type:index
,indexIfNotExists
, ordelete
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.common.api.search.BulkUpdate
getCollection, getId
-
Constructor Details
-
IndexDocument
public IndexDocument()
-
-
Method Details
-
fromDocument
Creates a bulk index operation from aSerializedDocument
. -
getType
Description copied from interface:BulkUpdate
Indicates the operation type:index
,indexIfNotExists
, ordelete
.- Specified by:
getType
in interfaceBulkUpdate
-