...b where c.contentid=b.contentid and c.status=99" 配置文件: project.name = html project.default_charset = utf-8 server.index = 8383 server.search = 8384 [pid] type = id [catid] type = numeric index = both tokenizer = full [subject] type = title [message] type = bo...
...8384 3 配置和导入原有数据 在sdk的app目录里 vi 项目名.ini project.name = 项目名 project.default_charset = UTF-8 server.index = 192.168.0.250:8383 server.search = 192.168.0.250:8384 [tid] type = id [fid] index = self tokenizer = full [author] [authorid] index = self tokenizer ...
...~]# /usr/local/php/bin/php /usr/local/xunsearch/sdk/php/util/Indexer.php --project=xxx –-source=mysql://xxx:xxx@localhost/xxx --sql="select ID,post_title,post_content,UNIX_TIMESTAMP(post_date) as post_time from wp_posts where (post_status='publish' or post_status='pending') and post_type='post'" ...
...项目需要的字段。 以下是伪代码,请勿直接复制使用 project.name = myblog project.default_charset = utf-8 server.index = 8383 server.search = 8384 [ID] // 文章ID type = id phrase = yes [author] //作者 index = self [post_content] //内容 type = body [po...
...7, IP:x.x.x.x, BURST:1) 2014-04-25 11:10:46 worker12[30041] INFO [sock:7] project changed (NAME:xxxxx) 2014-04-25 11:10:46 worker12[30041] INFO [sock:7] zcmd executed (CMD:1, RET:0x0001) 2014-04-25 11:10:46 worker12[30041] INFO [sock:7] zcmd executed (CMD:99, RET:0x0102) 2014-04-25 11:10:46 work...
... 'search' => array( 'class' => 'EXunSearch', 'project' => 'demo', // 搜索项目名称或对应的 ini 文件路径 'charset' => 'utf-8', // 您当前使用的字符集(索引、搜索结果) ), ), ``` 然后就可以通过 `Yii::app()->...
...Count int 获取最近那次搜索的匹配总数估值 XSSearch project string 获取当前项目名称 XSServer query string 获取解析后的搜索语句 XSSearch relatedQuery array 获取相关搜索词列表 XSSearch respond XSCommand 从服务器读...