euskadi31/search-php 问题修复 & 功能扩展

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

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

euskadi31/search-php

Composer 安装命令:

composer require euskadi31/search-php

包简介

Search engine wrapper

README 文档

README

Wrapper for search engine.

Engine supported

  • Sphinx
  • SphinxQL

Example

require 'path/to/vendor/autoload.php';

$search = new Search\Engine\SphinxQL("127.0.0.1", 9306);

// index document
$search->insert("tweets", [
    "id"        => 4951957226,
    "text"      => "For a bit of light weekend reading how about https://github.com/php/php-langspec/blob/master/spec/php-spec-draft.md … ? Still very much work in progress, but let us know if you spot typos",
    "timestamp" => 1407857815
]);

$search->insert("contacts", [
    "id"        => 1234,
    "firstname" => "Kiefer",
    "lastname"  => "Sutherland",
    "email"     => "kiefer.sutherland@example.com"
    "timestamp" => 1407857945
]);

$search->insert("contacts", [
    "id"        => 1235,
    "firstname" => "Chloe",
    "lastname"  => "O'Brian",
    "email"     => "chloe.obrian@example.com"
    "timestamp" => 1407857948
]);

// search
$response = $search->search("chloe", "contacts");

License

search-php is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固