XSIndex All Packages | 属性 | 方法(函数) 包 XS 继承关系 class XSIndex » XSServer » XSComponent 版本 1.0.0 源代码 sdk/php/lib/XSIndex.class.php XS 索引管理 添加/删除/修改索引数据 Public 属性 隐去继承来的属性 ...
配置 [title] type = title . . . [hasvideo] index = self query:千 hasvideo:1 结果: 电影 - 悭钱家族 导演: 赵崇基 主演: 陈奕迅 郑裕玲 杨千嬅 曾志伟 狄龙 剧情简介: 典型都市女性Diana(郑裕玲饰)有着骄人的事业成绩,也积...
...制使用 project.name = myblog project.default_charset = utf-8 server.index = 8383 server.search = 8384 [ID] // 文章ID type = id phrase = yes [author] //作者 index = self [post_content] //内容 type = body [post_content_full] //全部内容 cutlen = 300 //显示300个...
update() 方法 public XSIndex update(XSDocument $doc, bool $add=false) $doc XSDocument $add bool 是否为新增文档, 已有数据中不存在同一主键的其它数据 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class....
ini文件里面某个字段设置如下: [php][example_attr] index = self tokenizer = split(,)[/php] 按这个字段搜索,example_attr:jianyue,baise 得到结果如下:[php]45 ... jianyue,baise,qianhuang 207 ... zhongshi,hongse,baise 39 ... jianyue,baise,huangse 41 ... jianyue,hei...
...类别字段分面统计 结果与真实结果相差很大 配置 [cid] index = self tokenizer = full 索引 $i = 0; foreach($row->cats as $node){ $cid = $node->getId(); if($i++ == 0){ $doc->setField('cid', $cid); }else{ $doc->addTerm('cid', $cid); } ...
...name = discuz project.default_charset = GBK ;服务端用默认值 ;server.index = 8383 ;server.search = 8384 [pid] type = id [fid] index = self tokenizer = full [tid] [first] index = self tokenizer = full [author] index = both [authorid] [subject] type = title [message] type = body [dateli...
ini文件里面cid字段设置[php][cid] index = self tokenizer = split(,) non_bool = yes [/php] 按cid:1或者cid:你好,平安,是可以搜到数据的,cid:hello,英文的搜不到任何数据,下面是部分数据。[php] bash-3.2$ php sdk/php/util/Quest.php example cid:你好 ...
... [php] project.name = goods project.default_charset = utf-8 server.index = 8383 server.search = 8384 ; 商品ID 与配送范围 配送范围以特殊格式放到标题后面 [goods_id] type = id ; 商品名称 [goods_name] type = title index = both ; 商品分类 [cat_id] typ...
...} elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this will cause file content be turncated $conn = substr($conn, 7); if (($sock = @fopen($conn, 'wb')) === false) { throw new XSException('Failed to open ...