...class.php#L46 (显示) public function getFieldId(){ if (isset($this->_typeMap[XSFieldMeta::TYPE_ID])) { $name = $this->_typeMap[XSFieldMeta::TYPE_ID]; return $this->_fields[$name]; } return false;} 获取主键字段元数据
...field as $name) { $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$name' cann't be used for facets search, can only be string type"); } $buf .= chr($ff->vno); } $cmd = array('cmd' => XS_CMD_SEA...
...t = 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个字节 [post_title] //标题 type = title [post_...
sdk/php/app/demo.ini配置 [php] [id] type = id [productsName] type = title tokenizer = scwsSplit [/php] 自定义字母、数字分词类 sdk/php/lib/XSTokenizerScwsSplit.php [php]
...Scheme.class.php#L320 (显示) public function val($value){ if ($this->type == self::TYPE_DATE) { // 日期类型: 转换成专用的 YYYYmmdd 格式 if (!is_numeric($value) || strlen($value) !== 8) { $value = date('Ymd', is_numeric($value) ? $value : strtotime($value));...
...D:2 就能找到相应的数据 filename就是 xxxx ID是主键 filename type=title ini的内容为: project.name = .... project.default_charset = UTF-8 ;server.index = 8383 ;server.search = 8384 [ID] type = id [filename] type = title tokenizer = full 求指点
...ect.default_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] 结果显...
...显示) public function checkValid($throw = false){ if (!isset($this->_typeMap[XSFieldMeta::TYPE_ID])) { if ($throw) { throw new XSException('Missing field of type ID'); } return false; } return true;} 判断该字段方案是否有效、可用 每个方...
...ty:31 AND tag_id:1300 , 开启模糊搜索 setFuzzy(),是指针对 type= title 单字段搜索 还是所有条件都模糊搜啊? 一般搜索标题类型都是 type= title ,比如我要搜 '宠' 能搜到 宠物店 宠美容 但是没有 宠寄养世界 , 再搜 ...
我的字段中有:type, topicid 两个numeric字段 当 $res = $search->setQuery($_GET['kw'])->addRange('type',2,3)->search(); 进行查询时 topicid字段不存在于结果集中 但是:如果使用 $res = $search->search($_GET['kw']); 或者 $search->setQuery($_GET['kw'])->search();...