kiyana76/elasticsearch_filter
Composer 安装命令:
composer require kiyana76/elasticsearch_filter
包简介
This implement pagination and excel for result Elasticsearch
README 文档
README
Elasticsearch Filter is package that implement simple search and search with aggregation with pagination and excel for laravel project.
Installation
composer require kiyana76/elasticsearch_filter
Usage
Create class that extend .
Kiyana76\ElasticSearchFilter\Elasticsearch
You can create API Resource and add to related class to all response implement base on Resource.
You can set index name of elsticsearch in related class.
You can set pagination size in related class.
For aggregations you can add custom aggregations parameters and custom aggregations response in related class.
This class accept $filterOrder parameter for sorting and you can customize setAggregationSort() parameters for customizing sorting in elasticsearch.
You can set $excelPrefixFileName and $excelIgnoreColumns parameters for customizing excel export.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-30