Class DeleteDocumentById

All Implemented Interfaces:
JsonType

public class DeleteDocumentById extends Command
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 Details

    • DeleteDocumentById

      public DeleteDocumentById()
  • Method Details

    • routingKey

      public String routingKey()
      Uses the document ID as the routing key, ensuring consistency during deletion.
      Overrides:
      routingKey in class Command
      Returns:
      a routing key string, or null if not specified