Notice: Undefined index: part in C:\Users\Administrator\Desktop\tool\dev\make_xd b_file.php on line 92 PHP Notice: Undefined index: part in C:\Users\Administrator\Desktop\tool\dev\ma ke_xdb_file.php on line 92 Notice: Use of undefined constant key - assumed 'key' in C:\Users\Administrato Des...
...ightman' pid='3722' dateline='1364360180'] 你这个词典是在 etc/dict_user.txt 还是项目目录下的 data/app/dict_user.txt ? 如果是后者需要升级到 1.4.6-dev 才支持,前者必须在改词典后重启 xs-searchd [/quote] 我今天升级到1.4.6了,词典在etc/dict_user....
...blic void connect(array $param) $param array 连接参数, 包含: user, pass ... 源码: sdk/php/util/XSDataSource.class.php#L818 (显示) public function connect($param){ $dsn = $this->makeDsn($param); $user = isset($param['user']) ? $param['user'] : 'root'; $pass = isset($pa...
...earch->query 的值看看实际检索条件 [/quote] 按照你说的 [user_id] type = numeric index = none tokenizer = full $xs = new XS('entry'); $search = $xs->getSearch(); $search->setCharset('utf8'); $search->addRange('user_id',1,20000)->setLimit($page_num,($page-1)*$page_num)-...
...搜索任何都搜不出。搜索/却出来全部结果 [id] type = id [user] index = both tokenizer = none [zh] index = both tokenizer = none [dh] index = both tokenizer = none ~ [hr] [quote='子不语' pid='5115' dateline='1384100404'] 我就想使用普通的搜索功能,但...
[attachment=51][attachment=52]http://www.xunsearch.com/doc/php/guide/start.demo[img]C:\Users\illow\Desktop\桌面图纸.jpg[/img][/img]:\Users\illow\Desktop\截图.jpg[/img]
字段配置 [user_id] type = numeric index = self tokenizer = full 用 $search->addRange('user_id',1,20000)->..... 搜索 指定 用户id 范围的内容 addRange区间过滤不起作用 不知道是我配置问题 还是调用方式不对
1. 需要重启 xs-searchd 2. 只读取 dict_user.txt 3. 系统的同时生效,但 dict_user.txt 优先级更高 4. 词性完全可以自定义,但最多 2个字节
...']) ? "port={$param['port']} " : ''; $dsn .= "dbname={$param['dbname']} user={$param['user']} password={$param['pass']}"; if (!($this->link = @pg_connect($dsn))) { throw new XSException('Error connecting to PGSQL database:' . $param['dbname'] . '.'); pg_set_error_verbosity($this-...
自定义了dict_user.txt 出现奇怪现象,所有词性都变成了string(3),而且还出现了乱码: array(3) { ["off"]=> int(0) ["attr"]=> string(3) "@�" ["word"]=> string(15) "重庆鸡公煲" } array(3) { ["off"]=> int(0) ["attr"]=> string(3) "ns�" ["word"]=> string(6) "重庆" ...