...与检索和分词。 帖出我的配置文件: [tweetId] type = id tokenizer = none [content] type = body cutlen = 600 [authorId] tokenizer = none [sendTime] tokenizer = none [source] tokenizer = none [status] tokenizer = none [tweetType] tokenizer = none [picExt] ...
tokenizer = full 就是不分词了。但不指定字段时还是会分词,除非你用 XSSearch::addQueryTerm 来构建查询
xlen([2]) 表示根据指定参数长度分段取词,如 ABCDEF => AB + CD + EF 用的朋友一定要把中括号去掉 变成xlen(2) 否则报错
...]=> int(10) ["vno"]=> int(0) ["tokenizer":"XSFieldMeta":private]=> string(4) "full" ["flag":"XSFieldMeta":private]=> int(1) } ["id"]=> object(XSFieldMeta)#19 (7) { ["name"]=> ...
... self [goods_name] type = title index = both [goods_sn] index = both tokenizer = full 2. 导入相关数据 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('goods'); $data = array( 'goods_id' => 112, 'goods_name' => 'hello my goodsname', 'g...
...不出。搜索/却出来全部结果 [id] type = id [user] index = both tokenizer = none [zh] index = both tokenizer = none [dh] index = both tokenizer = none ~ [hr] [quote='子不语' pid='5115' dateline='1384100404'] 我就想使用普通的搜索功能,但是搜索任何都...
...不可以搜索和显示出来 [id] type = id [user] index = both tokenizer = full [q] index = both tokenizer = full [w] index = both tokenizer = full ~
... type = string index = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric index = self tokenizer = full [forward] type = numeric index = self tokenizer = full [reply_num] type = numeric index = self tokenizer = full xunsearch服务...
...hm/xs-searchd.sock [id];图片ID主键 唯一 type = id index = none tokenizer = none cutlen = 0 weight = 0 phrase = no non_bool = no [title];图片属于哪个图集的题标 非唯一 但每个图集题标都是唯一 type = title;我可以设置为string? index = both;如果type ...