Class DeleteDocumentById
java.lang.Object
io.fluxcapacitor.common.api.Request
io.fluxcapacitor.common.api.Command
io.fluxcapacitor.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 io.fluxcapacitor.common.api.Command
getGuarantee
-
Constructor Details
-
DeleteDocumentById
public DeleteDocumentById()
-
-
Method Details
-
routingKey
Uses the document ID as the routing key, ensuring consistency during deletion.- Overrides:
routingKey
in classCommand
- Returns:
- a routing key string, or
null
if not specified
-