[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...
...正确,可是分词却不对!! No. WordString Attr Weight(times) ------------------------------------------------- 01. 权利 nr 7.00(2) 02. 陈凯歌 nr 3.50(1) 03. 包括导 nr 3.50(1) 04. 权人 ...
... type = string index = none [album_name] type = string index = both weight = 2 [gmt_create] type = numeric index = none [pass_date] type = string index = none
...面就不用说了,没有使用这个。 [maturename] index = self weight = 5 phrase = yes [color=#FF0000]已经对maturename进行了精确查找。使用双引号进行查找。percent居然是从42%开始。使用的是or啊[/color] ... ... ... ... ... ... ... ... ... ... ...
... [/quote] 那网址是按"."划分.而ip却不是 No. WordString Attr Weight(times) ------------------------------------------------- 01. 192 en 4.86(1) 02. 168 en... 03. 0 en 2.75(1) 04. 1 en... 这样呢?
... [ccount] => 0 [percent] => 97 [weight] => 7.2940921783447 ) ) ) json_encode之后就为空了。[{},{},{},{},{}] 请问是什么原因呢
...s\t%s\t%d\t%.2f\n", $i++, $tmp['word'], $tmp['attr'], $tmp['times'], $tmp['weight']); } $cws->close(); utf8编码好像使用不了,我把所有文件(ini,php,包括test.php)都改成utf8编码存储,header输出的也是utf8编码,执行默认的test.php,产生乱码,不知道问题...
...te] [b]本地结果:[/b] [quote] No. WordString Attr Weight(times) ------------------------------------------------- 01. 查结果 nr 10.50(3) 02. 关证据 nr 7.00(2) 03. 于非刑 nr 7.00(2) 04. 况通报 ...
...er()) { // internal tokenizer $wdf = $field->weight | ($field->withPos() ? XS_CMD_INDEX_FLAG_WITHPOS : 0); if ($field->hasIndexMixed()) { $cmds[] = new XSCommand(XS_CMD_DOC_INDEX, $wdf, XSFieldScheme::MIXED_VNO, $value); ...
... [ccount] => 0 [percent] => 100 [weight] => 0 ) ) [1] => XSDocument Object [/code] 那个sort,time,update_time,都是int型的 配置文件如下 [code] project.name = xuenar_news project.default_charset = utf-8 ser...