Class DeleteDocumentById
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.search.DeleteDocumentById
- All Implemented Interfaces:
JsonType
Command to delete a single document from the search store by its collection and ID.
This provides a lightweight alternative to a query-based deletion when the document ID is known.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUses the document ID as the routing key, ensuring consistency during deletion.Methods inherited from class Command
getGuarantee
-
Constructor Details
-
DeleteDocumentById
public DeleteDocumentById()
-
-
Method Details
-
routingKey
Uses the document ID as the routing key, ensuring consistency during deletion.- Overrides:
routingKeyin classCommand- Returns:
- a routing key string, or
nullif not specified
-