XunSearch
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
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
