Skip to content

Delete document by query #2

@solemnwarning

Description

@solemnwarning

It would be useful to have a variant of Search::Typesense::Document->delete() which takes a query (or check whether the second parameter is a HASH reference in the existing method) for deleting multiple documents as per https://typesense.org/docs/0.25.1/api/documents.html#delete-by-query.

I've bodged my own code for the time being with this:

$typesense->documents->_DELETE(
	path => [ "collections", $collection_name, "documents" ],
	query => { "filter_by" => "item:=${item_name}" },
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions