Skip to content

Update search.md #1670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions content/collections/docs/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,23 @@ composer require algolia/algoliasearch-client-php:^3.4

Statamic will automatically create and sync your indexes as you create and modify entries once you kick off the initial index creation by running the command `php please search:update`.

:::tip Heads up
Algolia uses Guzzle Client to send the data to their cloud. If you need additional setup (i.e. proxy), you might want to override the default Guzzle Client with your own in `AppServiceProvider.php`:
```php
use Algolia\AlgoliaSearch\Algolia;
use Algolia\AlgoliaSearch\Http\GuzzleHttpClient;
use GuzzleHttp\Client as GuzzleClient;

$httpClient = new GuzzleHttpClient(
new GuzzleClient([
'proxy' => 'proxy-url'
])
);

Algolia::setHttpClient($httpClient);
```
:::

#### Settings
You may provide Algolia-specific [settings](https://www.algolia.com/doc/api-reference/settings-api-parameters/) in a `settings` array.

Expand Down