open20/amos-elasticsearch 问题修复 & 功能扩展

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

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

open20/amos-elasticsearch

最新稳定版本:2.2.0

Composer 安装命令:

composer require open20/amos-elasticsearch

包简介

Amos Elasticsearch

README 文档

README

Plugin description

Installation

Add module to your main config in backend:

<?php
'modules' => [
    'elasticsearch' => [
        'class' => '\open20\elasticsearch\Module',
        'modelMap' => [
            'ElasticModelSearch' => 'common\modules\transformermanagers\ElasticModelSearch',
        ],
        'hosts' => ['http://localhost:9201', ],
        'modelsEnabled' => [
          	/**
             * Add here the classnames of the models where you want the elasticsearch => class trasformation of model
             * (i.e. 'open20\amos\news\models\News' => 'common\modules\transformermanagers\NewsTransformerManager' )
             */
        ],
    ],
],

luya command

php vendor/bin/luya elastic/re-index-cms // rebuild cms pages elasticsearch index

php vendor/bin/luya elastic/rebuild // rebuild all Record models elasticsearch index

php vendor/bin/luya elastic/clear-all-indexes // clear all elasticsearch index 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-11-11