...时出现了indexer无法正常启动的情况 执行命令 /usr/local/xunsearch/bin/xs-ctl.sh -b local restart 提示: WARNING: no server[xs-indexd] is running (BIND:127.0.0.1:8383) INFO: re-starting server[xs-indexd] ... (BIND:127.0.0.1:8383) INFO: stopping server[xs-searchd] (BIND:127.0.0...
[root@li382-193 ~]# /usr/local/xunsearch/bin/xs-ctl.sh fastrestart INFO: stopping server[xs-indexd] (BIND:127.0.0.1:8383) .... [OK] INFO: re-starting server[xs-indexd] ... (BIND:127.0.0.1:8383) INFO: stopping server[xs-searchd] (BIND:127.0.0.1:8384) ................................. [FAILED] [ro...
xunsearch 1.1.0 数据库mysql 字符集 utf8 配置文件如下 project.name = entry project.default_charset = UTF-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = s...
...试" $search->getCorrectedQuery('yunsearch'); // 通过拼写纠错得到: xunsearch $search->getCorrectedQuery('xunseach 侧试'); // 混合纠错得到: xunsearch测试 ~~~ > tip: 建议在搜索结果数量过少或没有时再尝试进行拼写纠错,而不是每次搜索都进行。 搜...
...tman, 您好,我将过滤器做了以下处理: 1,放在/usr/local/xunsearch/sdk/php/lib/下面,并且赋予755权限; 2,运行命令util/Indexer.php --rebuild --source=mysql://隐藏 --sql="select did, tag, title, content from wiki_doc" --filter=/usr/local/xunsearch/sdk/php/lib/MyBlo...
...解决 求相关信息. ps:错误提示Warning: require_once(/home/xunsou/xunsearch/sdk/php/lib/XS.php) [function.require-once]: failed to open stream: Permission denied in /home/web/www.ziyouhu.com/xs-test.php on line 3 Fatal error: require_once() [function.require]: Failed opening required '/home...
...f-8[hr] 很感谢 hightman,很早以前我用了scsw,但是不知道有xunsearch,当时公司使用的是zend lucene和scsw分词,速度相当相当慢,查询总数5万条左右的记录要2秒以上。现在想换xunsearch试试
[root@localhost xunsearch]# util/Indexer.php --source=test.csv --clean demo 清空现有索引数据 ... 初始化数据源 ... test.csv [XSException] util/XSDataSource.class.php(49): Undefined data source type: `test.csv' #0 Indexer.php(241): XSDataSource::instance('test.csv', NULL) #1 {main}...
...ch->setQuery($query); // 设置搜索语句 $search->addWeight('subject', 'xunsearch'); // 增加附加条件:提升标题中包含 'xunsearch' 的记录的权重 $search->setLimit(5, 10); // 设置返回结果最多为 5 条,并跳过前 10 条 $docs = $search->search(); // 执行搜索,将...
...坛里问下。 [code][root@a107 ~]# /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_statu...