123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?php
- return [
- /*
- |--------------------------------------------------------------------------
- | Default Search Engine
- |--------------------------------------------------------------------------
- |
- | This option controls the default search connection that gets used while
- | using Laravel Scout. This connection is used when syncing all models
- | to the search service. You should adjust this based on your needs.
- |
- | Supported: "algolia", "null"
- |
- */
- 'driver' => env('SCOUT_DRIVER', 'algolia'),
- /*
- |--------------------------------------------------------------------------
- | Index Prefix
- |--------------------------------------------------------------------------
- |
- | Here you may specify a prefix that will be applied to all search index
- | names used by Scout. This prefix may be useful if you have multiple
- | "tenants" or applications sharing the same search infrastructure.
- |
- */
- 'prefix' => env('SCOUT_PREFIX', ''),
- /*
- |--------------------------------------------------------------------------
- | Queue Data Syncing
- |--------------------------------------------------------------------------
- |
- | This option allows you to control if the operations that sync your data
- | with your search engines are queued. When this is set to "true" then
- | all automatic data syncing will get queued for better performance.
- |
- */
- 'queue' => [
- 'queue' => 'search'
- ],
- /*
- |--------------------------------------------------------------------------
- | Chunk Sizes
- |--------------------------------------------------------------------------
- |
- | These options allow you to control the maximum chunk size when you are
- | mass importing data into the search engine. This allows you to fine
- | tune each of these chunk sizes based on the power of the servers.
- |
- */
- 'chunk' => [
- 'searchable' => 500,
- 'unsearchable' => 500,
- ],
- /*
- |--------------------------------------------------------------------------
- | Soft Deletes
- |--------------------------------------------------------------------------
- |
- | This option allows to control whether to keep soft deleted records in
- | the search indexes. Maintaining soft deleted records can be useful
- | if your application still needs to search for the records later.
- |
- */
- 'soft_delete' => false,
- /*
- |--------------------------------------------------------------------------
- | Algolia Configuration
- |--------------------------------------------------------------------------
- |
- | Here you may configure your Algolia settings. Algolia is a cloud hosted
- | search engine which works great with Scout out of the box. Just plug
- | in your application ID and admin API key to get started searching.
- |
- */
- 'algolia' => [
- 'id' => env('ALGOLIA_APP_ID', ''),
- 'secret' => env('ALGOLIA_SECRET', ''),
- ],
- /*
- |--------------------------------------------------------------------------
- | Elasticsearch 配置
- |--------------------------------------------------------------------------
- |
- | 配置 Elasticsearch 的地址端口与密码.以及index
- |
- */
- 'elasticsearch' => [
- 'host' => [
- 'host' => env('ELASTICSEARCH_HOST', 'localhost'),
- //'port' => env('ELASTICSEARCH_PORT', 9200),
- //'scheme' => env('ELASTICSEARCH_SCHEME', 'http'),
- //'user' => env('ELASTICSEARCH_USER', 'elastic'),
- //'pass' => env('ELASTICSEARCH_PASS', 'changeme')
- ]
- ],
- 'elasticsearch_index_prefix' => env('ELASTICSEARCH_INDEX_PREFIX', '')
- ];
|