Algolia
Algolia is a robust cloud-hosted search solution that works perfectly with Scoutify.
Environment Variables
Section titled “Environment Variables”SCOUT_DRIVER=algoliaALGOLIA_APP_ID=your-app-idALGOLIA_SECRET=your-admin-api-keySecured API Keys
Section titled “Secured API Keys”Instead of your admin key, generate a scoped key server-side:
$securedKey = Algolia\AlgoliaSearch\SearchClient::generateSecuredApiKey( 'search-only-api-key', ['filters' => 'is_public=1']);Index Configuration
Section titled “Index Configuration”Configure ranking and searchable attributes through the Algolia dashboard or using the SDK:
$index = $client->initIndex('users');$index->setSettings([ 'searchableAttributes' => ['name', 'email'], 'customRanking' => ['desc(created_at)'],]);Quota and Limits
Section titled “Quota and Limits”Algolia enforces record and operation limits based on your plan. Monitor your usage in the Algolia dashboard to avoid unexpected charges.