我们站现在对帖子的发贴用户(author)有进行索引,但是出于隐私保护,又要禁止普通用户专门去搜索其他用户发的所有帖子(但是版主可以),所以需要在部分时候禁掉按author字段搜索,这时怎么做比较好?
...,索引的相关字段也可能不同。 比如说主题里有id,fid,author,authorid,time,title,body,isdel,ishidden,isreply等等,这些都放到索引里 而回帖表里有tid,author,authorid,time,body,isdel,isUseTools,ishidden,isAnonymous等字段需要放到索引里 而我搜索的...
...er.index = 8383 server.search = 8384 [ID] type = id phrase = yes [author] index = self [post_content] type = body [post_title] type = title [post_date] type = numeric index = self [category] index = self [/php] 索引导入 /usr/local/xunsearch/sdk/php/util/Indexer.ph...
...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=mysql://数据库用户名:数据库密码@数据...
...6 2007 *************** *** 2,8 **** * @file xdb.h (read only) * @author Hightman Mar * @editor set number ; syntax on ; set autoindent ; set tabstop=4 (vim) ! * $Id: xdb.h,v 1.1.1.1 2007/06/05 04:19:45 hightman Exp $ */ #ifndef _SCWS_XDB_20070525_H_ --- 2,8 ---- * @fi...
...83 server.search = 8384 [ID] // 文章ID type = id phrase = yes [author] //作者 index = self [post_content] //内容 type = body [post_content_full] //全部内容 cutlen = 300 //显示300个字节 [post_title] //标题 type = title [post_time] //时间YYYYmmdd形式...
... type = title [message] type = body [dateline] type = numeric [author] index = both [authorid] [tid] index = self tokenizer = full [fid] index = self tokenizer = full [flag] [/code] mysql数据库,sample.sql [code]-- -- Table structure for table `sample` -- C...
... [frist] index = self type = numeric [postdate] type = numeric [author] index = self type = string [authorid] type = numeric [tsvalue] index = self type = numeric [othervalue] index = self type = numeric [views] index = self type = numeric [replies] index = self ...
... tokenizer = full [tid] [first] index = self tokenizer = full [author] index = both [authorid] [subject] type = title [message] type = body [dateline] type = numeric