承接 glicer/search 相关项目开发

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

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

glicer/search

Composer 安装命令:

composer require glicer/search

包简介

Autocomplete, search and browsing as-you-type

README 文档

README

A real-time full text search solution with javascript (client side) and php (server side)

Autocomplete, search and browsing as-you-type in real-time

Sample Search

It's working with

Check out the demo.

Feedback appreciated

Server Side

Import Data

Data must be in yaml format, some samples in tests/server/data

    <?php
    use Symfony\Component\Console\Output\ConsoleOutput;
    use GlSearchEngine\GlServerEngine;

    $output    = new ConsoleOutput();

    $yamlFiles      = [__DIR__ . "/data/web.yml", __DIR__ . "/data/web2.yml"];  //yaml files list to import in database
    $dbname         = __DIR__ . "/data/web.db"; //database path
    $table          = "web";    //prefix table name
    $fieldsFullText = ['title', 'tags', 'description', 'address', 'city'];  //fields list to fulltext search
    $fieldsFilter   = ['gps']; //fields list possibly used to filter

    $engine = new GlServerEngine($dbname, $output, true);
    $engine->importYaml(
           $table,
           $fieldsFilter,
           $fieldsFullText,
           $yamlFiles,
           function () use ($output) { //callback function to each import
               $output->write(".");
           }
    );

Service

Example of php file called by javascript client.

Configure Apache Server

Allow multiple requests to be sent over the same TCP connection

Header set Connection Keep-Alive

Client side

Example of use

Running Client/Server Tests

Launch from command line :

vendor\bin\phpunit

To Do

Ranking / Sorting

Licence

GNU 2

Contact

Authors : Emmanuel ROECKER & Rym BOUCHAGOUR

Web Development Blog - http://dev.glicer.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GNU
  • 更新时间: 2015-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固