chrysanthos/scout-elastic-app-search-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chrysanthos/scout-elastic-app-search-driver

Composer 安装命令:

composer require chrysanthos/scout-elastic-app-search-driver

包简介

Laravel Scout Adapter for Elastic Enterprise App Search

README 文档

README

This package is a work in progress. Avoid using this on production environments.

Integrate Elastic App Search with Laravel Scout.

This is an early but functional version. Tests to be added.

Installation

You can install the package via composer:

composer require chrysanthos/scout-elastic-app-search-driver

Usage

In order to use the package, you must set Laravel Scout to use the driver

SCOUT_DRIVER=elastic-app-search

Then set up the connection details for Elastic App Search

SCOUT_ELASTIC_APP_SEARCH_ENDPOINT=
SCOUT_ELASTIC_APP_SEARCH_API_KEY=

You must also adjust your config/scout.php file so that the chunk sizes are up to 100 records. (This is needed because App Search only allows importing up to 100 records at a time.)

'chunk' => [
    'searchable' => 100,
    'unsearchable' => 100,
],

Once you have added the Searchable Trait to your model. You will be able to search with:

 $result = Model::search($searchTerm)->get();

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email me@chrysanthos.xyz instead of using the issue tracker.

Credits

Licence

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固