12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
-
- return [
-
- /*
- |--------------------------------------------------------------------------
- | Default search index
- |--------------------------------------------------------------------------
- |
- | This option controls the search index that gets queried when performing
- | search functions without explicitly selecting another index.
- |
- */
-
- 'default' => env('STATAMIC_DEFAULT_SEARCH_INDEX', 'default'),
-
- /*
- |--------------------------------------------------------------------------
- | Search Indexes
- |--------------------------------------------------------------------------
- |
- | Here you can define all of the available search indexes.
- |
- */
-
- 'indexes' => [
-
- 'default' => [
- 'driver' => 'local',
- 'searchables' => 'all',
- 'fields' => ['title'],
- ],
-
- // 'blog' => [
- // 'driver' => 'local',
- // 'searchables' => 'collection:blog',
- // ],
-
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Driver Defaults
- |--------------------------------------------------------------------------
- |
- | Here you can specify default configuration to be applied to all indexes
- | that use the corresponding driver. For instance, if you have two
- | indexes that use the "local" driver, both of them can have the
- | same base configuration. You may override for each index.
- |
- */
-
- 'drivers' => [
-
- 'local' => [
- 'path' => storage_path('statamic/search'),
- ],
-
- 'algolia' => [
- 'credentials' => [
- 'id' => env('ALGOLIA_APP_ID', ''),
- 'secret' => env('ALGOLIA_SECRET', ''),
- ],
- ],
-
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Search Defaults
- |--------------------------------------------------------------------------
- |
- | Here you can specify default configuration to be applied to all indexes
- | regardless of the driver. You can override these per driver or per index.
- |
- */
-
- 'defaults' => [
- 'fields' => ['title'],
- ],
-
- ];
|