XunSearch

Categories

Component ID

2226967

Component name

XunSearch

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

[English]
This module handles integration with XunSearch - an excellent fulltext search engine – expressly for Chinese and other Asian languages like Korean and Japanese , and it support English well too.
Xunsearch is very high performance, GPL , very easy to install.
Xunsearch is writen in C/C++ , use xapian-core , scws to handle Chinese segmentation scheme.
Install Xunsearch: http://www.xunsearch.com/doc/php/guide/start.installation
Install TestModule: http://www.trackself.com/archives/2539.html

[Chinese]
该项目将整合drupal和XunSearch,
XunSearch是一个非常优秀的中文全文搜索方案,GPL,非常完美地支持中文分词,也能很好的支持如日文、韩文等亚洲国家的语言。
是一个高性能、全功能的全文检索解决方案,并使用最流行的开源许可协议 GPL 发布.
xapian-core 这是 Xunsearch 的底层索引设计方案
scws 默认内置的中文分词解决方案
libevent 后端服务器的事件处理模型
nginx 搜索服务器的设计借鉴了 nginx 的方式,采用多进程、多线程混合用于处理高并发请求
Yii 非常优秀的 PHP 开发框架,xunsearch 官网采用该框架,文档组织形式也参考自 Yii
安装过程:http://www.trackself.com/archives/2539.html

[Detail Installation]
1. install Xunsearch server in Centos 6
wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2
tar -xjf xunsearch-full-latest.tar.bz2
cd xunsearch-full-1.3.0/
sh setup.sh

2.config an ini file for your drupal site ,for example call d7.ini
cp $prefix/sdk/php/app/demo.ini $prefix/sdk/php/app/d7.ini
vi d7.ini
//change d7.ini contain at lease [id] [subject] [nid] [message] ['status']['contenttype']['created']['changed']['author']
example:http://xs.trackself.com/d7.ini

3.install this drupal module Xunsearch as the normal module

[the following steps is just like normal search_api]

4.at the config page:
for example http://youdomain.com/?q=admin/config/search/search_api
click "add server"
type server name as you like , for example "serverXunSearch"
"Service class"--choose "Xunsearch Service"
after you choose , then there will be two input showup below
type the above path and ini file name there

5.click create server button

6.add index
type index name as you like , for example "indexXunSearch"
"Item type":Currently, this module support node and commerce product very well.
"server" : choose "serverXunSearch" you create in step 4
i would like to index item immediately
then follow the search_api steps , it's easy.

7.click "creat index" button

8.create a view , choose type "indexXunSearch"
add any field as you like and change views style as you like
filter:create a "full text search" exposed filter
currently i support only a "full text search" , future will be more support

9.facet search
currently support "content type" facet , just add it in search_api UI

10.demo:http://xs.trackself.com/?q=testxunsearch&search_api_views_fulltext=1