承接 hunteryun/xunsearch 相关项目开发

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

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

hunteryun/xunsearch

Composer 安装命令:

composer require hunteryun/xunsearch

包简介

simple xunsearch package.

README 文档

README

simple xunsearch package for any Framework.

请看原作者的包:https://github.com/ShaoZeMing/xunsearch-laravel

重复造这个轮子,只是因为我真的不喜欢demo.ini这种配置文件,根本没法和框架的配置灵活组合,还是数组操作方便。所以我改了改,以方便和我的HunterPHP框架无缝整合!具体参看此模块:

https://github.com/hunteryun/xunsearch_api

Usage

<?php

$config = array(
  'project.name' => 'story',
  'project.default_charset' => 'utf-8',
  'server.index' => '192.168.1.250:8383',
  'server.search' => '192.168.1.250:8384',
  'sid' => array(
    'type' => 'id'
  ),
  'story_name' => array(
    'type' => 'title'
  ),
  'story_content' => array(
    'type' => 'body'
  ),
  'image' => array(
    'type' => 'string'
  ),
  'type' => array(
    'type' => 'string'
  ),
  'created' => array(
    'type' => 'data'
  ),
  'sid' => array(
    'type' => 'id'
  ),
);

 use Hunter\Xunsearch\Search;

 $xs = new Search($configs); //$configs is array , not file, I hate file.

 $xs->addIndex($data); // $data is your index data array.
 $xs->updateIndex($data);
 $xs->delIndex($ids);
 $xs->cleanIndex();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固