Download the PHP package liuwave/think-elastic without Composer
On this page you can find all versions of the php package liuwave/think-elastic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package think-elastic
Think Elastic
ThinkPHP Elasticsearch 扩展 ,fork于 kainonly/think-elastic,做了些更改:
- 增加门面函数
- 将database中的配置分离到config/elasticsearch.php
安装
安装后服务将自动注册,新建配置文件config/elasticsearch.php
- hosts
array
集群连接 - retries
int
重试次数 - SSLVerification
string
公共CA证书 - logger
LoggerInterface
开启日志 - handler
mixed
配置 HTTP Handler - connectionPool
AbstractConnectionPool|string
设置连接池 - selector
SelectorInterface|string
设置选择器 - serializer
SerializerInterface|string
设置序列化器
client(string $label = 'default')
- label
string
配置label - Return
Elasticsearch\Client
写入文档
获取文档
搜索文档
删除文档
删除索引
创建索引
think-elastic
使用了 elasticsearch/elasticsearch ,更多方法可查看 Elasticsearch-PHP 完整文档
All versions of think-elastic with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4.0
topthink/framework Version ^6.0.0
elasticsearch/elasticsearch Version ^7.2
topthink/framework Version ^6.0.0
elasticsearch/elasticsearch Version ^7.2
The package liuwave/think-elastic contains the following files
Loading the files please wait ....