yiisoft / db-elasticsearch
Yii Framework Elasticsearch Query and ActiveRecord
Fund package maintenance!
Open Collective
yiisoft
Requires
- ext-curl: *
- yiisoft/arrays: ^3.0@dev
- yiisoft/di: ^3.0@dev
- yiisoft/strings: ^3.0@dev
- yiisoft/yii-core: ^3.0@dev
Requires (Dev)
- hiqdev/composer-config-plugin: ^1.0@dev
- phpunit/phpunit: ^9.0
- yiisoft/active-record: ^3.0@dev
- yiisoft/cache: ^3.0@dev
- yiisoft/log: ^3.0@dev
This package is auto-updated.
Last update: 2024-04-12 05:39:17 UTC
README
Yii Framework Elasticsearch Query and ActiveRecord
This extension provides the elasticsearch integration for the Yii framework.
It includes basic querying/search support and also implements the ActiveRecord
pattern that allows you to store active
records in elasticsearch.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
Requirements
Extension requires at least elasticsearch version 5.0.
Installation
The preferred way to install this extension is through composer.
composer require --prefer-dist yiisoft/yii-elasticsearch
Configuration
To use this extension, you have to configure the Connection class in your application configuration:
return [ //.... 'components' => [ 'elasticsearch' => [ 'class' => 'Yiisoft\Db\ElasticSearch\Connection', 'nodes' => [ ['http_address' => '127.0.0.1:9200'], // configure more hosts if you have a cluster ], ], ] ];