Download the PHP package xiaosongshu/yii2-elasticsearch without Composer
On this page you can find all versions of the php package xiaosongshu/yii2-elasticsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xiaosongshu/yii2-elasticsearch
More information about xiaosongshu/yii2-elasticsearch
Files in xiaosongshu/yii2-elasticsearch
Download xiaosongshu/yii2-elasticsearch
More information about xiaosongshu/yii2-elasticsearch
Files in xiaosongshu/yii2-elasticsearch
Vendor xiaosongshu
Package yii2-elasticsearch
Short Description "elasticsearch client for YII2"
License mit
Package yii2-elasticsearch
Short Description "elasticsearch client for YII2"
License mit
Please rate this library. Is it a good library?
Informations about the package yii2-elasticsearch
elasticsearch-YII客户端 elasticsearch client for YII
安装 install
配置 Configuration
基本用法 example
客户端支持的所有方法
创建索引:createIndex
创建表结构:createMappings
删除索引:deleteIndex
获取索引详情:getIndex
新增一行数据:create
批量写入数据:insert
根据id批量删除数据:deleteMultipleByIds
根据Id 删除一条记录:deleteById
获取表结构:getMap
根据id查询数据:find
根据某一个关键字搜索:search
使用原生方式查询es的数据:nativeQuerySearch
多个字段并列查询,多个字段同时满足需要查询的值:andSearch
or查询 多字段或者查询:orSearch
根据条件删除数据:deleteByQuery
根据权重查询:searchByRank
获取所有数据:all
添加脚本:addScript
获取脚本:getScript
使用脚本查询:searchByScript
使用脚本更新文档:updateByScript
索引是否存在:IndexExists
根据id更新数据:updateById
如果单独使用本插件,则需要实例化的时候传入elasticsearch的连接配置
elasticsearch客户端使用实例
测试
将本扩展包的phpunit.xml文件复制到项目的根目录下面然后执行下面的命令
联系作者
All versions of yii2-elasticsearch with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4.1
elasticsearch/elasticsearch Version 7.17.1
yiisoft/yii2 Version ~2.0.14
elasticsearch/elasticsearch Version 7.17.1
yiisoft/yii2 Version ~2.0.14
The package xiaosongshu/yii2-elasticsearch contains the following files
Loading the files please wait ....