mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-06-13 06:37:31 +08:00
31 lines
955 B
PHP
31 lines
955 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
return [
|
||
|
|
/*
|
||
|
|
* There are different options for the connection. Since Explorer uses the Elasticsearch PHP SDK
|
||
|
|
* under the hood, all the host configuration options of the SDK are applicable here. See
|
||
|
|
* https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/configuration.html
|
||
|
|
*/
|
||
|
|
'connection' => [
|
||
|
|
'host' => 'localhost',
|
||
|
|
'port' => '9200',
|
||
|
|
'scheme' => 'http',
|
||
|
|
],
|
||
|
|
|
||
|
|
/**
|
||
|
|
* An index may be defined on an Eloquent model or inline below. A more in depth explanation
|
||
|
|
* of the mapping possibilities can be found in the documentation of Explorer's repository.
|
||
|
|
*/
|
||
|
|
'indexes' => [
|
||
|
|
\App\Models\Torrent::class
|
||
|
|
],
|
||
|
|
|
||
|
|
/**
|
||
|
|
* You may opt to keep the old indices after the alias is pointed to a new index.
|
||
|
|
* A model is only using index aliases if it implements the Aliased interface.
|
||
|
|
*/
|
||
|
|
'prune_old_aliases' => true,
|
||
|
|
];
|