... - util/Quest.php 命令行运行,搜索测试工具 - util/Indexer.php 命令行运行,索引管理工具 - util/SearchSkel.php 命令行运行,根据配置文件生成搜索骨架代码 - util/xs 命令行工具统一入口 在开始编写您的...
./Indexer.php -p --rebuild --source=mysql://root:'111111'@localhost/tmp_tsg --sql="select*,IF(market_price>0,round(shop_price/market_price*10,1),10) as rebate from tsg_goods" -p ../app/goods.ini [/php][/quote]初始化数据源 ... mysql://root:6$4!rgnbmClskax@localhost/tmp_tsg PHP Notice: Und...
[code] project.name = 59n [bid] type = id [title] index = mixed weight = 5 [bc] index = mixed [cc] index = mixed [addtime] type = date tokenizer = none [/code] [php] ./Indexer.php --source=mysql://root:root@localhost/blog --sql="select b.bid,b.content AS bc,b.addtime,b.titl...
...php/app/xx.ini配置一下 (1里面也是xx.ini 但是没有设置server.index和server.search) project.name = xxxx project.chartset = UTF-8 server.index = x.x.x.160:8383 server.search = x.x.x.160:8384 使用 Index.php -p test --info 报错 #0 ../lib/XS.php(2025): XSServer->connect() #1 ../lib/X...
...件如下 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 = self tokenizer = full [post_time] type = numeric in...
...name = discuz project.default_charset = GBK ;服务端用默认值 ;server.index = 8383 ;server.search = 8384 [pid] type = id [fid] index = self tokenizer = full [tid] [first] index = self tokenizer = full [author] index = both [authorid] [subject] type = title [message] type = body [dateli...
...有目录 目录下没有文件 咋回事呢 /var/xunsearch/sdk/php/util/Indexer.php --source=mysql://root:root@192.168.1.700/test --sql="SELECT id, uid FROM test" --project="/var/xunsearch/sdk/php/app/person.ini" 开始批量导入数据 (请直接输入数据) ... 完成索引导入:成功 338...
... cd $prefix bin/xs-ctl.sh restart 显示: 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) .... [OK] INFO: re-starting server[xs-searchd] ... (BIND:127.0.0...
... cd $prefix bin/xs-ctl.sh restart 显示: 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) .... [OK] INFO: re-starting server[xs-searchd] ... (BIND:127.0.0...
...入索引数据,请先按以下方式操: ~~~ cd $prefix/sdk/php util/Indexer.php --source=csv --clean demo ~~~ 然后脚本会给出如下提示: ~~~ 初始化数据源 ... csv WARNING: input file not specified, read data from 开始批量导入数据 ... ~~~ 然后我们测试输入下...