承接 rkmax/sphinx-client 相关项目开发

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

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

rkmax/sphinx-client

最新稳定版本:1.0.1

Composer 安装命令:

composer require rkmax/sphinx-client

包简介

SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

README 文档

README

Autoload.php

$loader->registerPrefixes(array(
   // ...
   'Sphinx'           => __DIR__.'/../vendor/sphinx-client',
));

config.yml

services:
     buscador:
         class: Sphinx\SphinxClient
         calls:
             - [setArrayResult, [true]]
             - [setLimits, [0, 20, 1000]]

*Action.php

$palabras = 'hola que tal';
$search  = $this->get('buscador');
$results = $search->Query($palabras, 'nombre_index');

Source: Taken from the sf2 mailing list with some minor fixes

Para mayor información: sphinxsearch

统计信息

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

GitHub 信息

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

其他信息

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