pimcore / generic-data-index-bundle

Other
3 stars 1 forks source link

Cannot filter for specific data object class via SearchProviderInterface #139

Closed mattamon closed 2 months ago

mattamon commented 2 months ago

The SearchProviderInterface returns a https://github.com/pimcore/generic-data-index-bundle/blob/1.x/src/Model/Search/Interfaces/SearchInterface.php.

The interfaces does not contain the necessary setClassDefinition to filter for specific classes.

Trying to set this to https://github.com/pimcore/generic-data-index-bundle/blob/1.x/src/Model/Search/DataObject/DataObjectSearchInterface.php also does not work since this interfaces does not extend the SearchInterface. This causes problems with static analysis. https://github.com/pimcore/studio-api-bundle/actions/runs/8626889747/job/23645820528

Working with the concrete implementation DataObjectSearch does not feel right.

markus-moser commented 2 months ago

@lukmzig Could you please check what the best approach here could be?