Giter Site home page Giter Site logo

libra-server's People

Stargazers

顿刚 avatar

Watchers

James Cloos avatar

libra-server's Issues

能不能把安装步骤写的详细一点儿呢?

我在安装你的这个系统的时候出现问题了,我用的是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

无法启动matcher服务

我用的fedora17  
使用server:./matcher无法启动服务
只能在图形界面下双击matcher文件打开服务
能不能让matcher支持chkconfig命令啊,想设置开机自动启动服务�
��

Original issue reported on code.google.com by [email protected] on 14 Nov 2012 at 9:06

CentOS下安装步骤

操作系统: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

set 一个中间有空格的词,如 "办 证",就search不到任何东西了

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.