nailsapp/module-elasticsearch 问题修复 & 功能扩展

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

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固