...y($value = true){ $this->_defaultOp = $value === true ? XS_CMD_QUERY_OP_OR : XS_CMD_QUERY_OP_AND; return $this;} 开启模糊搜索 默认情况只返回包含所有搜索词的记录, 通过本方法可以获得更多搜索结果
...lse) { if ($this->inCli) { echo "INFO: reach end of file or error occured, total lines: " . $this->line . "\n"; } return false; } $this->line++; if (count($item) === 1 && is_null($item[0])) { if ($this->inCli) { echo "WARNING: invalid csv li...
... 设置百分比/权重剔除参数 通常是在开启 setFuzzy 或使用 OR 连接搜索语句时才需要设置此项
... 支持的操作符有: XS_CMD_QUERY_OP_AND XS_CMD_QUERY_OP_OR XS_CMD_QUERY_OP_AND_NOT XS_CMD_QUERY_OP_XOR XS_CMD_QUERY_OP_AND_MAYBE XS_CMD_QUERY_OP_FILTER $scale float 权重计算缩放比例, 默认为 1表示不缩放, 其它值范围 0.xx ~ ...
... return $data; } // array traverse if (is_array($data)) { foreach ($data as $key => $value) { $data[$key] = self::convert($value, $to, $from); } return $data; } // string contain 8bit characters if (is_string($data) && preg_match('/[\x81-\xfe]/', $da...
...lse) { if ($this->inCli) { echo "INFO: reach end of file or error occured, total lines: " . $this->line . "\n"; } return false; } $this->line++; if (count($item) === 1 && is_null($item[0])) { if ($this->inCli) { echo "WARNING: invalid csv li...
...!($param = parse_url($this->type))) { throw new XSException('Wrong format of DB connection parameter'); } else { if (isset($param['user'])) { $param['user'] = urldecode($param['user']); } if (isset($param['pass'])) { $param['pass'] = urldecode($pa...
... 分词连接 XS getSearch() 获取搜索操作对象 XS restoreScheme() 还原字段方案为项目绑定方案 XS setDefaultCharset() 改变项目的默认字符集 XS setName() 修改当前项目名称 XS setScheme() 设置当前在用的字段方案 XS ...
...表 XSSearch connString string 连接字符串 XSServer correctedQuery array 获取修正后的搜索词列表 XSSearch dbTotal int 获取搜索数据库内的数据总量 XSSearch facets array 读取最近一次分面搜索记数 XSSearch hotQuery arr...