承接 nailsapp/module-elasticsearch 相关项目开发

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

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

nailsapp/module-elasticsearch

Composer 安装命令:

composer require nailsapp/module-elasticsearch

包简介

This is the "Elasticsearch" module for Nails.

README 文档

README

license tests Scrutinizer Code Quality

This is the Elasticsearch Module for Nails, it provides a Nails friendly interface for working with the Elasticsearch PHP client.

Installing Elasticsearch

You should follow the latest instructions for installation on Elastic's official documentation page.

Configuring your Application

Configure which hosts the client connects to by defining a service property called hosts. By default this will connect to localhost:9200.

If you wish to override this in your application, create a services.php file at application/services/nails/module-elasticsearch/.

Example services.php below:

/**
 * Include the base services file so that the client can be instantiated,
 * remember you are simply overriding defaults.
 */
$aServices = include 'vendor/nails/module-elasticsearch/services/services.php';

/**
 * Define an array of hosts for the Elasticsearch client to use.
 */
$aServices['properties']['hosts'] = array(
    'http://example.com:1234',
    'http://example.co.uk:9200'
);

/**
 * Remember to return the services array so that the Nails Factory picks it up
 */
return $aServices;

统计信息

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

GitHub 信息

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

其他信息

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