UPGRADE FROM 2.x to 3.0
The bundle has been renamed, be sure to change in your
composer.json the name of the dependency:
Because of the bundle renaming, you need to update your
algolia: application_id: xxxxxx api_key: xxxxxxxxxxxxxxxxx
algolia_search: indices: - name: posts class: App\Entity\Post
Note that if you previously had a
prefix configured, you have to change the prefix:
algolia: prefix: foo
algolia_search: prefix: foo_
The "Per environment indexing" was dropped. If you relied on this to separate your index (ex: prod vs dev) you need to apply this changes:
# the per environment indexing feature was enabled by default
// config.yml algolia_search: indices: - name: posts class: App\Entity\Post
// config_dev.yml algolia_search: prefix: dev_
The data is normalized using the Symfony Serializer component. You should read the documentation to learn how to create/use normalizer.
Because of that change, you have to remove all
@Algolia annotations you previously put on your entities.
/** * @ORM\Column(name="description", type="text") * @Algolia\Attribute */ protected $description;
/** * @ORM\Column(name="description", type="text") */ protected $description;
The indexation command has been renamed.