You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Looking at how the final ID is generated to be stored to meilisearch, I'm not sure how this could work with composite identifiers..
For a basic use case when no composite is used, we could allow to just pass int/string ID and then in the method retrieve the identifier field of the doctrine entity and convert to the meilisearch format and that would work.
But if composite would be used than we'd need to manually provide the values mapping to which fields they belong and also in the same order that is retrieved to convert the composite..
Maybe a basic use case would be enough for now until someone would show an interest?
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
Other
nothing more.
The text was updated successfully, but these errors were encountered: