MINI
C:
/
siak
/
Siak71
/
application
/
third_party
/
vendor
/
basemkhirat
/
elasticsearch
/
src
/
config
/
Upload File:
files >> C:/siak/Siak71/application/third_party/vendor/basemkhirat/elasticsearch/src/config/es.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Elasticsearch Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the Elasticsearch connections below you wish | to use as your default connection for all work. Of course. | */ 'default' => env('ELASTIC_CONNECTION', 'default'), /* |-------------------------------------------------------------------------- | Elasticsearch Connections |-------------------------------------------------------------------------- | | Here are each of the Elasticsearch connections setup for your application. | Of course, examples of configuring each Elasticsearch platform. | */ 'connections' => [ 'default' => [ 'servers' => [ [ "host" => env("ELASTIC_HOST", "127.0.0.1"), "port" => env("ELASTIC_PORT", 9200), 'user' => env('ELASTIC_USER', ''), 'pass' => env('ELASTIC_PASS', ''), 'scheme' => env('ELASTIC_SCHEME', 'http'), ] ], 'index' => env('ELASTIC_INDEX', 'my_index') ] ], /* |-------------------------------------------------------------------------- | Elasticsearch Indices |-------------------------------------------------------------------------- | | Here you can define your indices, with separate settings and mappings. | Edit setting and mapping and run 'php artisan es:index:update' to update | indices on elasticsearch server. | | 'my_index' is just for test. Replace it with a real index name. | */ 'indices' => [ 'my_index_1' => [ "aliases" => [ "my_index" ], 'settings' => [ "number_of_shards" => 1, "number_of_replicas" => 0, ], 'mappings' => [ 'posts' => [ "properties" => [ 'title' => [ 'type' => 'string' ] ] ] ] ] ] ];
Copyright ©2021 || Defacer Indonesia