Class IndexDocuments
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.search.IndexDocuments
- All Implemented Interfaces:
JsonType
Command used to index a collection of
SerializedDocument instances in the search store.
This command is typically sent to the Fluxzero Runtime, requesting that the specified documents be stored and made searchable.
Documents can belong to different collections and contain arbitrary facets, indexes, and metadata, allowing them to be used for filtering, searching, and analytics.
Conditional indexing: If ifNotExists is true, the Runtime will only index a
document if no document with the same ID and collection already exists.
Delivery guarantees: The Guarantee determines the durability of the indexing operation
(e.g. STORED waits for acknowledgment).
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSize()Optionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.toMetric()Converts this object into a compact metric representation for logging or monitoring.toString()Methods inherited from class Command
getGuarantee
-
Constructor Details
-
IndexDocuments
public IndexDocuments()
-
-
Method Details
-
getSize
public int getSize() -
toString
-
toMetric
Description copied from interface:JsonTypeConverts this object into a compact metric representation for logging or monitoring.Used by the Fluxzero Java SDK to avoid logging large payloads directly while still tracking platform usage.
- Returns:
- a safe and compact object suitable for serialization to the metrics log
-
routingKey
Description copied from class:CommandOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.- Overrides:
routingKeyin classCommand- Returns:
- a routing key string, or
nullif not specified
-