All Projects → farwish → alconSeek

farwish / alconSeek

Licence: MIT license
alconSeek is an Application Skeleton (Phalcon+Xunsearch) for Develop Full-text Search Api.

Programming Languages

PHP
23972 projects - #3 most used programming language
Volt
20 projects
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to alconSeek

Phalcon
📕 基于Phalcon集成Composer,事件监听,中间件,MongoDB,Redis
Stars: ✭ 31 (+93.75%)
Mutual labels:  phalcon
Cphalcon
High performance, full-stack PHP framework delivered as a C extension.
Stars: ✭ 10,534 (+65737.5%)
Mutual labels:  phalcon
Phwoolcon
Phalcon + Swoole
Stars: ✭ 173 (+981.25%)
Mutual labels:  phalcon
Phalcon Cron
Cron component for Phalcon.
Stars: ✭ 73 (+356.25%)
Mutual labels:  phalcon
Website
Archived Website repository - https://github.com/phalcon/phalcon.io
Stars: ✭ 109 (+581.25%)
Mutual labels:  phalcon
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (+806.25%)
Mutual labels:  phalcon
Incubator
Incubator adapters/functionality for the Phalcon PHP Framework
Stars: ✭ 734 (+4487.5%)
Mutual labels:  phalcon
x-api
phalcon搭建的基础php结构
Stars: ✭ 27 (+68.75%)
Mutual labels:  phalcon
Php Ext Xlswriter
🚀 PHP Extension for creating and reader XLSX files.
Stars: ✭ 1,734 (+10737.5%)
Mutual labels:  phalcon
Gene For Php7
Simple, high performance,C extension framework for php!(php-gene-for-php7)
Stars: ✭ 163 (+918.75%)
Mutual labels:  phalcon
Album O Rama
Album O'Rama repository
Stars: ✭ 87 (+443.75%)
Mutual labels:  phalcon
Docker Phalcon
Dockerized Phalcon
Stars: ✭ 97 (+506.25%)
Mutual labels:  phalcon
Identity Card
A simple proof of identity card of the people's Republic of China.
Stars: ✭ 154 (+862.5%)
Mutual labels:  phalcon
Phalcon Mongodb Odm
MongoDB ODM for Phalcon framework for new mongodb php extension with query builder and rich functionality
Stars: ✭ 42 (+162.5%)
Mutual labels:  phalcon
Course Tencent Cloud
酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展PHP框架Phalcon开发,致力开源网课系统,开源网校系统,开源在线教育系统。
Stars: ✭ 165 (+931.25%)
Mutual labels:  phalcon
Padlock
Phalcon Authentication Server
Stars: ✭ 18 (+12.5%)
Mutual labels:  phalcon
Ide Stubs
Phalcon IDE Stubs
Stars: ✭ 137 (+756.25%)
Mutual labels:  phalcon
cover
get NetEase CloudMusic Cover
Stars: ✭ 31 (+93.75%)
Mutual labels:  phalcon
Box
[DEPRECATED] Official, pre-packaged Vagrant Box
Stars: ✭ 197 (+1131.25%)
Mutual labels:  phalcon
Phalcon Debugbar
A powerful debug and profilers tool for the Phalcon Framework
Stars: ✭ 159 (+893.75%)
Mutual labels:  phalcon

alconSeek

Synopsis

尔康搜索是一个让你极其方便地开发全文检索Api的应用骨架。

提供:简洁的搜索接口,索引管理界面,索引定时更新脚本,多库多项目的快速二次开发.

Install & Deploy

一. 依赖:

1). LNMP环境
搭建可参考:https://github.com/farwish/delicateShell/tree/master/lnmp

2). Composer工具

curl -sS https://getcomposer.org/installer | php  
mv composer.phar /usr/local/bin/composer  

3). Phalcon框架
文档:https://docs.phalconphp.com/en/latest/reference/install.html
搭建可参考:https://github.com/farwish/delicateShell/blob/master/lnmp/installPhalcon.sh

4). Xunsearch服务
文档:http://www.xunsearch.com/doc/php/guide/start.installation
搭建可参考:https://github.com/farwish/delicateShell/blob/master/support/installXunsearch.sh

二. 部署:

sh deploy  
vi ./app/config/config.ini  #数据库配置, 后面导入的数据库

三. nginx 配置部分:

server {
    listen 80; 
    server_name alconseek.farwish.com;

    root /home/www/alconSeek/public;

    location / { 
        index index.html index.htm index.php;
        try_files $uri $uri/ /index.php?_url=$uri&$args;
    }   

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}
别忘了:
/etc/hosts 中加入 127.0.0.1   alconseek.farwish.com   

四. 数据库
你可以用phpmyadmin等软件导入我准备好的数据库进行测试, 文件是 alconseek.sql。
索引管理界面初始登录账号密码: admin / admin
vi ./app/config/config.ini #数据库配置

五. 访问(任何你配置的地址或域名)  

http://127.0.0.1/m
http://127.0.0.1/s?q=

API

检索访问GET /s  

参数

param 是否必须 explain
q 可选 搜索词
p 可选 页码
typ 可选 指定检索方法,默认typ=demo为主检索

管理访问GET /m

参数 :无

Index Rebuild Crontab

./app/config/index_rebuild_cron 文件, 使用方式见注释.

Index Management Interface

indexManager indexBuild

Overview

项目特点(feature):
1. 搜索数据配置化, 即插即用, 马上拥有360搜索般的服务
2. 架构松耦合, 只需专注特色功能的快速开发(TraitAction)

项目结构(structure):
由phalcon开发工具(phalcon-devtools)生成的Simple类型项目改进而来; 修改点:
1.config.php加载ini配置;
2.services.php注册xunsearch服务.

功能概述(functional):
1.索引管理: http://www.demo.com/m
2.通用搜索API: http://www.demo.com/s?q=

搜索配置放置(search config):
./app/xsconfig/xxx.ini

搜索数据目录(data directory):
/usr/local/xunsearch/data/xxx

定时脚本模板
./app/config/index_rebuild_cron.default

How to develop your application?

首先你得建一个表, 根据迅搜文档编辑自己的ini搜索配置文件 并 放在xsconfig目录中; 索引管理处生成数据, 然后就可以通过Api访问了.
配置文件详解: http://www.xunsearch.com/doc/php/guide/ini.guide

Discussion

Qq group: 377154148

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].