Registry / database / yiisoft-yii2-elasticsearch

yiisoft-yii2-elasticsearch

JSON →
library2.1.5phppackagistunverified

Elasticsearch integration and ActiveRecord for the Yii framework.

composer require yiisoft/yii2-elasticsearch
INSTALL
IMPORT
SIG · YIISOFT-YII2-ELAST
Y
yiisoft-yii2-elasticsearch
databasephpv2.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ActiveRecord
use yii\elasticsearch\ActiveRecord;

Define an Elasticsearch ActiveRecord model and save a record.

use yii\elasticsearch\ActiveRecord; class User extends ActiveRecord { public static function index() { return 'users'; } } $user = new User(); $user->name = 'John'; $user->save();
Debug
Known issues
breakingRequires Elasticsearch 5.x or 6.x; not compatible with 7.x without changes.
fix
Use version 2.1.5 with Elasticsearch 6.x or upgrade to a newer version for 7.x support.
affects: <=2.1.5
Upgrade
Version history
2.1.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
yiisoft-yii2-elasticsearch — pip install yiisoft-yii2-elasticsearch · libregistry