...t] type = body [/code] 2、索引 [code] util/Indexer.php --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, content FROM dede_article" --project=search [/code] 结果显示成功索引556752条数据 3、测试搜索 [code]util/Quest.php search NBA[/code] 显示: [code]在 181,...
...0 ps 31168 ? 00:00:47 xs-indexd 31171 ? 00:00:00 xs-searchd [root@edu ~]# strace -p 14179 Process 14179 attached - interrupt to quit clock_gettime(CLOCK_MONOTONIC, {223647, 727467159}) = 0 epoll_wait(1, {}, 32, 2184) = 0 clock_gettime(CLOCK_MONOTONIC, {223649, 926081228}) =...
...29:8383/和http://192.168.46.129:8384/ 输入的时候 显示 It works! [root@localhost xunsearch]# util/Indexer.php --source=csv --clean test [XSException] ../../../../usr/local/xunsearch/sdk/php/lib/XS.php(2448): Failed to recv the data from server completely (SIZE:0/8, REASON:closed) #0 /usr/lo...
...么参数,都是显示帮助文档,这是怎么回事呢? [code][root@abc util]# /usr/local/php/bin/php Indexer.php --info Indexer - 索引批量管理、导入工具 (xunsearch/1.3.3) 用法 Indexer.php [options] [-p|--project] [--file] 选项说明 --project= -p ...
...his->makeDsn($param); $user = isset($param['user']) ? $param['user'] : 'root'; $pass = isset($param['pass']) ? $param['pass'] : ''; try { $this->obj = new PDO($dsn, $user, $pass); } catch (PDOException $e) { throw new XSException($e->getMessage()); }} 连接数据库...
...1.1.1版本的安装步骤,却发现出错了: 看代码: [code] [root@localhost phpext]# ./configure --with-scws=/usr/local/scws/ --with-php-config=/usr/local/php5/bin/php-config checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking fo...
[php]root@localhost ~]# Indexer.php --source=mysql://xxx@localhost/phpcms --sql="SELECT a.id,a.title,a.url,a.catid,FROM_UNIXTIME (inputtime,'%Y%m%d' ) as inputtime,ad.content,c.catname,c.url as caturl FROM v9_dede_article AS a LEFT JOIN v9_dede_article_data as ad on a.id=ad.id LEFT JOIN v9_categ...
... require_once $file; } else if (file_exists(XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file)) { require_once XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file; } if (!class_exists($name)) { throw new XSException('Undefined custom tokenize...
...很多信息,所以换个简单的命令来论坛里问下。 [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_...
...能检测功能。 > > 此外 `xunsearch` 的安装和运行都不需要 `root` 权限,强烈推荐单独设置一个系统用户用于安装 > 执行相关指令。 Xunsearch 全部开源,理论上也可以从官方提供的 [git 仓库][1] 获取源码自行构建,但是 这要求必须有...