ewgo/solarium-module 问题修复 & 功能扩展

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

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

ewgo/solarium-module

最新稳定版本:v1.0.2

Composer 安装命令:

composer require ewgo/solarium-module

包简介

Zend Framework 2 integration with solarium solr client

README 文档

README

About

The EwgoSolarium module provides ZF2 integration with Solarium solr client.

It also integrates with Zend Developer Tools.

Installation

$ php composer.phar require ewgo/solarium-module

Add "EwgoSolarium" to the list of loaded modules.

Basic configuration

array(
    'solarium' => array(
        'endpoint' => array(
            'default' => array(
                'host' => 'localhost',
                'port' => 8983,
                'path' => '/solr',
                'core' => 'default',
                'timeout' => 5
            )
            //...
        )
    )
)

Usage

$client = $serviceLocator->get('Solarium\Client'); // Or the 'solarium' alias
$query = $client->createSelect();
$resultset = $client->execute($query);

For more information see the Solarium documentation.

Paginator adapter

This module also provides an adapter for Zend\Paginator.

$paginator = new \Zend\Paginator\Paginator(
    new \EwgoSolarium\Paginator\Adapter\SolariumPaginator($client, $query)
);
$paginator->setCurrentPageNumber($page);
$paginator->setItemCountPerPage($countPerPage);

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固