yiisoft / Yii2 Elasticsearch
Licence: bsd-3-clause
Yii 2 Elasticsearch extension
Stars: ✭ 401
Projects that are alternatives of or similar to Yii2 Elasticsearch
Yii2 Swiftmailer
Yii 2 swiftmailer extension.
Stars: ✭ 109 (-72.82%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Docker
Official Docker images suitable for Yii 2.0
Stars: ✭ 286 (-28.68%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 App Advanced
Yii 2.0 Advanced Application Template
Stars: ✭ 1,569 (+291.27%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (-55.86%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Bootstrap4
Yii 2 Bootstrap 4 Extension
Stars: ✭ 204 (-49.13%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Openapi
REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
Stars: ✭ 99 (-75.31%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 App Basic
Yii 2.0 Basic Application Template
Stars: ✭ 548 (+36.66%)
Mutual labels: hacktoberfest, yii2, yii
Yii2
Yii 2: The Fast, Secure and Professional PHP Framework
Stars: ✭ 13,852 (+3354.36%)
Mutual labels: hacktoberfest, yii2, yii
Elasticsearch Query and ActiveRecord for Yii 2
This extension provides the Elasticsearch integration for the Yii framework 2.0.
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
Depending on the version of Elasticsearch you are using you need a different version of this extension.
- For Elasticsearch 1.6.0 to 1.7.6 use extension version 2.0.x
- For Elasticsearch 5.x or above use extension version 2.1.x
Installation
The preferred way to install this extension is through composer:
composer require --prefer-dist yiisoft/yii2-elasticsearch:"~2.1.0"
Configuration
To use this extension, you have to configure the Connection class in your application configuration:
return [
//....
'components' => [
'elasticsearch' => [
'class' => 'yii\elasticsearch\Connection',
'nodes' => [
['http_address' => '127.0.0.1:9200'],
// configure more hosts if you have a cluster
],
'dslVersion' => 7, // default is 5
],
]
];
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].