flybird119 / libra-server Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/libra-server
Automatically exported from code.google.com/p/libra-server
看我上传的附件,键值最好不要是中文
Original issue reported on code.google.com by [email protected]
on 17 Oct 2012 at 12:49
Attachments:
我在安装你的这个系统的时候出现问题了,我用的是64为的cen
tos,在安装libdatrie时出现error while loading shared libraries:
libdatrie.so.1: cannot open shared object file: No such file or directory
最后我做了一个软连接好了
Original issue reported on code.google.com by [email protected]
on 17 Oct 2012 at 12:43
我用的fedora17
使用server:./matcher无法启动服务
只能在图形界面下双击matcher文件打开服务
能不能让matcher支持chkconfig命令啊,想设置开机自动启动服务�
��
Original issue reported on code.google.com by [email protected]
on 14 Nov 2012 at 9:06
操作系统:CentOS
1. 安装libevent http://monkey.org/~provos/libevent/
yum install libevent.x86_64 libevent-devel.x86_64 libevent.i686 libevent-devel.i686
2、安装libiconv
由于libdatrie依赖于libiconv来实现编码转换,因此必须安装libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure
make
make install
2.安装libdatrie http://linux.thai.net/~thep/datrie/datrie.html
wget ftp://linux.thai.net/pub/ThaiLinux/software/libthai/libdatrie-0.2.4.tar.gz
tar zxvf libdatrie-0.2.4.tar.gz
cd libdatrie-0.2.4
./configure CFLAGS=-liconv
make
make install
3、安装libra-server
mkdir libra-server
cd libra-server
wget https://libra-server.googlecode.com/files/libra-server-v1.1.zip
unzip libra-server-v1.1.zip
make
echo "/usr/local/lib" >>/etc/ld.so.conf
/sbin/ldconfig -v
启动matcher server:./matcher
4、测试
将matcher.php拷贝到web服务器对应目录下,并在目录下创建以下
测试代码。文件采用UTF-8无BOM编码格式存储
a、创建初始化过滤关键词库的代码 initdb.php
<?php
include('matcher.php');
$matcher = new Matcher('127.0.0.1');
$matcher->set('**功');
$matcher->set('共产党');
$matcher->set('***');
$matcher->set('美女');
$matcher->set('测试');
$matcher->set('fuck');
?>
b、创建搜索测试代码 search.php
<?php
include('matcher.php');
$matcher = new Matcher('127.0.0.1');
$matchs = $matcher->gets('测试代码,**功。fuck');
if (!empty($matchs)) {
print_r($matchs);
}
?>
Original issue reported on code.google.com by [email protected]
on 27 Oct 2012 at 1:15
我加入了两个词,其中一个词为另一个词的“子集”,如:fu
ckyou
和fuck,当匹配时,两个词都会不匹配,这应该是一个BUG吧
Original issue reported on code.google.com by [email protected]
on 15 Nov 2012 at 3:54
目前,你的系统知识全词匹配,而“找小姐”如果我添加的��
�容中有“找xiao姐”,就需要在添加一个对应的违禁词,那么
类似这样的词很多,就会造成词库很庞大,有可能一个词库��
�3-5万的违禁词,这个效率如何保证呢?
Original issue reported on code.google.com by [email protected]
on 17 Oct 2012 at 1:33
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Nov 2012 at 7:20
What steps will reproduce the problem?
1. set 一个中间有空格的词,如 "办
证",就search不到任何东西了
2.
3.
What is the expected output? What do you see instead?
null
What version of the product are you using? On what operating system?
centos6.0, php 5.3.10 ,libra-server-v1.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 Jun 2013 at 10:57
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.