No serializer service found
The bundle requires symfony/serializer, which is installed as a Composer dependency.
However, the serializer service alias is only registered when framework-bundle enables it.
If your app doesn’t enable the framework-bundle serializer, add the following to config/packages/framework.yaml:
YAML
The Groups attribute wasn’t taken into account
If your #[Groups(['searchable'])] attributes aren’t being applied at index time, check these in order:
- The bundle’s per-index serializer-groups flag is on. This is the most common cause — it defaults to
false. Set it in youralgolia_searchconfiguration:
YAML
searchable group to the Symfony serializer, so #[Groups] filtering never activates.
- Symfony attribute serialization is enabled. This is the default on Symfony 7 and later. If your app explicitly disabled it, re-enable it in
config/packages/framework.yaml:
YAML
- The
#[Groups]attribute uses the current namespace. ImportSymfony\Component\Serializer\Attribute\Groups, not the legacyAnnotation\Groups.