# Installation
1. Install + activate the extension 
2. Make sure you have an Algolia account 
3. Fill in the extension configuration 
4. Synchronise data to Algolia. Make sure the Shopware queue is running
   +++ CLI
   `php bin/console algolia:index:sync`
   +++ Backend
   `Settings > Extensions > Algolia Search > Synchronise`
   +++ On save
   Products will be synchronized to Algolia when they are updated in the admin or through the API 
   +++
5. Enjoy the blazing-fast Algolia search!

!!! 
[Algolia implementation checklist](https://www.algolia.com/doc/guides/going-to-production/implementation-checklist/)
!!!

## Optional configuration
### Index
When managing multiple environments (test, staging, or production), each index can be assigned a prefix.

```bash .env.local
CAMPIT_ALGOLIA_INDEX_PREFIX="prod"
```

Some examples:
- **test**-product-0190dfde2e897409baf2d1bc8d90f517-2fbb5fe2e29a4d70aa5854ce7ce3e20b
- **prod**-product-0190dfde2e897409baf2d1bc8d90f517-2fbb5fe2e29a4d70aa5854ce7ce3e20b
- **test**-blog-0190dfde2e897409baf2d1bc8d90f517-2fbb5fe2e29a4d70aa5854ce7ce3e20b
- **prod**-blog-0190dfde2e897409baf2d1bc8d90f517-2fbb5fe2e29a4d70aa5854ce7ce3e20b

## Support
(EN/NL) support@campit.be
