Elasticsearch

Config Example

'elasticsearch' => [
    'connections' => [
        'default' => [
            'hosts' => [
                \App\components\Helper::env('ES_DEFAULT_HOST', '127.0.0.1:9200'),
            ], // ES Cluster Hosts
            'timeout' => \App\components\Helper::envDouble('ES_TIMEOUT', 1), // HTTP Request Timeout during rest api call
        ],
    ],
    'switch' => \App\components\Helper::envInt('ES_SWITCH', 0),
],

Get

Create Index

Add Doc

Last updated