Download the PHP package funphp/elasticsearch without Composer
On this page you can find all versions of the php package funphp/elasticsearch. 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 elasticsearch
Elasticsearch
一个基于elasticsearch/elasticsearch简易的Elasticsearch工具包, 对Document
的查询操作进行了简单的封装.
安装
使用
引入相关搜索类
在你需要搜索的类中添加 \Funphp\Elasticsearch\Searchable
trait, 就可以使用相关的搜索操作了.
通过 searchableIndex()
方法, 就可以指定index
了.
查询文档
根据指定id
查询
term
match
ids
range
bool
must
must_not
filter
should
用法与must
相同
source
你可以使用`source` 来指定查询的列
对于分页查询,你可以使用`from`和`size`方法来实现.
aggs
All versions of elasticsearch with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
elasticsearch/elasticsearch Version ^7.8.0
laravel/framework Version >=6.0
elasticsearch/elasticsearch Version ^7.8.0
laravel/framework Version >=6.0
The package funphp/elasticsearch contains the following files
Loading the files please wait ....