...ry 的值看看实际检索条件 [/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)->setSort('...
...erver.index = 192.168.0.250:8383 server.search = 192.168.0.250:8384 [tid] type = id [fid] index = self tokenizer = full [author] [authorid] index = self tokenizer = full [postdate] tokenizer = full [subject] type = title [content] type = body #导入 php util/Indexer.php --rebuild --source=m...
...略设置有关。 起初对于分类id这个字段,我认为设置成type=numeric index=full就行,从实验看,需要设置成index=self(默认采用scws分词),这样就达到了目的。 不过还存在一些问题: 1.有些字段要存两份,分别应对排序和加权场景...
...> int(0) ["weight"]=> int(1) ["type"]=> int(10) ["vno"]=> int(0) ["tokenizer":"XSFieldMeta":private]=> string(4) "full" ["flag":"XSFieldMeta":private]=> int(1) } ...
...ault_charset = utf8 server.index =8383 server.search =8384 [user_id] type = id [username] index = self tokenizer = full [password] index = both [email] index = both 后来自己又写了个php页面打印结果是一个空数组
...范围:[0-9A-Za-z-_], 长度控制在 1~32 字节为宜 XSFieldMeta type int 字段类型 XSFieldMeta vno int 字段序号 取值为 0~255, 同一字段方案内不能重复, 由 XSFieldScheme::addField 进行确定 XSFieldMeta weight int 混合区检索时的相对权...
...务端用默认值 ;server.index = 8383 ;server.search = 8384 [did] type = id [title] type = title [tag] index = self [content] type = body[/code] 其中did为hdwiki每个词条唯一的编号(这个与url对应) title为词条的名字(需要能搜索) tag为词条的...
...;服务端用默认值 server.index = 8383 server.search = 8384 [id] type = id [classid] index = self tokenizer = full [title] type = title [smalltext] type = body [newstime] type = numeric 注:修改完,记得把文件名改为项目的名称,比如ecms.ini 5\# 导入...
...;服务端用默认值 server.index = 8383 server.search = 8384 [id] type = id [classid] index = self tokenizer = full [title] type = title [smalltext] type = body [newstime] type = numeric 注:修改完,记得把文件名改为项目的名称,比如ecms.ini 5\# 导入...
...ght] => 6.5234656333923 ) )[hr] //ini配置 [gid] type = id [name] type = title tokenizer = GameName [ranking] index=self[hr] 问题是:加了权重提升 还是排在后面[hr] [ranking] index=self tokenizer = full 重建索引后 搜索结果还是一样