承接 enrise/zf-elasticsearch 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

enrise/zf-elasticsearch

最新稳定版本:1.0.1

Composer 安装命令:

composer require enrise/zf-elasticsearch

包简介

A very simple but drop-in zf2 module for the elasticsearch client library.

README 文档

README

Latest Stable Version License

This repository contains a very simple but drop-in solution for using the elasticsearch client library in a ZF2 project.

The client is pre-configured with sensible defaults. You can further configure the client in the module config just as you would configure the elasticsearch client directly.

Usage example

$searchClient = $serviceLocator->get('elasticsearch');
$searchClient->search();

Installation

Require the module via composer:

$ composer require enrise/zf-elasticsearch

Load the module in your application:

// config/application.config.php
return array(
    'modules' => array(
        // ...
        'Enrise\\ZfModule\\ElasticSearch',
    )
);

And you're done!

Configuration example

To fine-tune your installation you can tweak the elasticsearch client configuration. For example:

// In your config file
return [
    'elasticsearch' => [
        'hosts' => [
            'es1.enrise.com',
            'es2.enrise.com'
        ],
        'logging' => true
    ]
];

Dependencies

  • elasticsearch/elasticsearch:^1.0

License

Please see the LICENSE file in this repository

Contributors

This zend framework module was made by Richard Tuin.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 11
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-04