Skip to content

remove object from index removes complete index #25

@thomasblass

Description

@thomasblass

when you have a model with Custom Id Property and not standard-name "persistence_object_identifier", the aspect on the delete method trys to find the Id of the object which was removed. this fails because the object is already deleted so it returns NULL and the call to elastic-search is DELETE/[index]/[type]/

I could track the issue down to "ObjectIndexer.removeObject"

$id = $this->persistenceManager->getIdentifierByObject($object);

Here the Persistence Manager returns NULL

If I change the Aspect to run before, everything works fine:

  • @flow\Before("setting(TYPO3.TYPO3CR.Search.realtimeIndexing.enabled) && within(TYPO3\Flow\Persistence\PersistenceManagerInterface) && method(public .+->(remove)())")

So we have different possible solutions for this:

  1. Change the Aspect
  2. Change how the PersistenceManager->getIdentifierByObject works
  3. do something else ;-)

Can somebody support me for this case please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions