测试了一下 numeric 超过100万的值 在update之后 数据精度会丢失 原始数据:1283934062 加入索引并检索 获取数据 1.28393e+09 1.28393e+09 从索引中取出来的数据 精度已经丢失 type = numeric index = self tokenizer = full
ini文件是这样配置的 [php] [active] index = self tokenizer = none [/php] 这个active 只保存1或者0 可是 搜索 [php] $search->setQuery("active:1")->search(); $search->setQuery('active:"1"')->search() [/php] 这样搜不出来啊 加上双引号也搜不出来 是不是这个有最短...
..._BOOL) { return false; } return (!$this->hasIndex() || $this->tokenizer !== XSTokenizer::DFL);} 判断当前字段的索引是否为布尔型 目前只有内置分词器支持语法型索引, 自 1.0.1 版本起把非索引字段也视为布尔便于判断
... = 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` -- CREATE TABLE IF NOT EXISTS `sample` ( `id` int(12) unsigne...
XSTokenizerSplit All Packages | 方法(函数) 包 XS.tokenizer 继承关系 class XSTokenizerSplit 实现接口 XSTokenizer 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php 内置的分割分词器 Public 方法 隐去继承来的方法 ...
字段配置 [user_id] type = numeric index = self tokenizer = full 用 $search->addRange('user_id',1,20000)->..... 搜索 指定 用户id 范围的内容 addRange区间过滤不起作用 不知道是我配置问题 还是调用方式不对
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:你好 ...
...earch = 8384 [pid] type = id [catid] type = numeric index = both tokenizer = full [subject] type = title [message] type = body [url] index = self tokenizer = full [chrono] type = numeric
XSTokenizerNone All Packages | 方法(函数) 包 XS.tokenizer 继承关系 class XSTokenizerNone 实现接口 XSTokenizer 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php 内置空分词器 Public 方法 隐去继承来的方法 ...
XSTokenizerFull All Packages | 方法(函数) 包 XS.tokenizer 继承关系 class XSTokenizerFull 实现接口 XSTokenizer 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php 内置整值分词器 Public 方法 隐去继承来的方法 ...