...段也可能不同。 比如说主题里有id,fid,author,authorid,time,title,body,isdel,ishidden,isreply等等,这些都放到索引里 而回帖表里有tid,author,authorid,time,body,isdel,isUseTools,ishidden,isAnonymous等字段需要放到索引里 而我搜索的时候希望从title...
...。当type为string,没有指明index索引方式是是不分词的。 [title] type=string index=both 和 [title] type=title 这两个字段设计效果一样。同样content,类型也有问题,可以这样 [content] type=body 或者 [content] type=string index=mixed 具体详看字段设计部...
... server.index = 8383 server.search = 8384 [sub_ID] type = id [sub_title] type = title [sub_edition] type = title [sub_text] type = body [sub_date] type = numeric 于是使用php进行测试,代码如下 没有显示任何结果 data目录下也没有任何文...
配置 [title] type = title . . . [hasvideo] index = self query:千 hasvideo:1 结果: 电影 - 悭钱家族 导演: 赵崇基 主演: 陈奕迅 郑裕玲 杨千嬅 曾志伟 狄龙 剧情简介: 典型都市女性Diana(郑裕玲饰)有着骄人的事业成绩,也积...
...earch/sdk/php/lib/XS.php 1018 我的查询语句是:SELECT `ID` as _ID,`title` as _title,`Content` as _body,`QuestionTime` as _time,`UserNam` as _user,`tag` as _tag FROM wenti_nr Where `search`=0 若只用sql进行数据库查询能获取到结果,而用xunsearch执行更新索引时候就提...
[color=#FF0000]demo.ini[/color] ----------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [pid] type = id [subject] type = title [message] type = body [chrono] type = numeric
...kenizer = full [fid] type = string index = self tokenizer = full [title] index = both type = title [content] index = mixed type=body [url] index = self type = string [sort] index = self type = string [frist] index = self type = numeric [postdate] type = numeric ...
...charset = utf-8 server.index = 8383 server.search = 8384 [ID] type = id [title] type = title [content] type = body [/code] 2、索引 [code] util/Indexer.php --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, content FROM dede_article" --project=search [/code] 结果显示成功索...
...值 ;server.index = 8383 ;server.search = 8384 [did] type = id [title] type = title [tag] index = self [content] type = body[/code] 其中did为hdwiki每个词条唯一的编号(这个与url对应) title为词条的名字(需要能搜索) tag为词条的标签(需要...
...er.index = 8383 server.search = 8384 [docno] type = id ;文档号 [title] type = title; 文章标题 [date] type = numeric ; 日期 index = self [text] type = body ;内容 下面 Linux CentOS.64 Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz MemTotal: 3921076 kB ...