alconSeek全文检索 Api 应用框架

联合创作 · 2023-09-20 06:32

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


一. 依赖:


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


五. 访问


http://www.demo.com/m
http://www.demo.com/s?q=




浏览 8
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报