Skip to content

Allow to delete an object from index only having an identifier #130

Open
@norkunas

Description

@norkunas

Description
Currently MeiliSearch\Bundle\SearchService exports method for deleting an entity, but there is no way to delete it having an identifier only. The basic use case - delete hundreds of entities in batch, then dispatch a messenger message to remove them from index, but providing only integers, as you cannot load anymore entities that do not exist.

Basic example

public function removeById(ObjectManager $objectManager, $identifier); // not sure about typehint of $identifier

Other

nothing more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions