搜索

大约有 255 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.1957秒)

111.XSIndex::setDb

...blic XSIndex setDb(string $name) $name string 数据库名称 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L439 (显示) public function setDb($name){ $this->execCommand(array('cmd' => XS_CMD_INDEX_SET_DB, 'buf' => $name), XS_...

112.XSSearch::setSort

... $relevance_first bool 是否优先相关性排序, 默认为否 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L289 (显示) public function setSort($field, $asc = false, $relevance_first = false){ if (is_array($field)) { ...

113.XSSearch::setFuzzy

...设为 true 表示开启模糊搜索, 设为 false 关闭模糊搜索 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L84 (显示) public function setFuzzy($value = true){ $this->_defaultOp = $value === true ? XS_CMD_QUERY_OP_OR : XS_C...

114.XSDatabasePDO_PgSQL

...Dsn(array $param) $param array 包含 path 为数据库路径 {return} string 源码: sdk/php/util/XSDataSource.class.php#L913 (显示) protected function makeDsn($param){ $dsn = "pgsql:host={$param['host']};"; $dsn .= isset($param['port']) ? "port={$param['port']};" : ''...

115.XSSearch::addWeight

...m string 索引词 $weight float 权重计算缩放比例 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L386 (显示) public function addWeight($field, $term, $weight = 1){ return $this->addQueryTerm($field, $term, XS_CMD...

116.XSDatabasePgSQL::query

...ed query(string $query) $query string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class.php#L582 (显示) public function query($query){ //echo "[DEBUG] SQL: $sql\n"; $res = pg_query($this->link, $query); if ($res === false) { throw ...

117.XSSearch::setLimit

... $offset int 偏移量, 即跳过的结果数量, 默认为 0 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L461 (显示) public function setLimit($limit, $offset = 0){ $this->_limit = intval($limit); $this->_offset = intv...

118.XSDatabaseMySQLI::query

... mixed query(string $sql) $sql string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class.php#L654 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { throw new XSEx...

119.XSFieldMeta::getCustomTokenizer

...stomTokenizer() 方法 public XSTokenizer getCustomTokenizer() {return} XSTokenizer 获取当前字段的自定义词法分析器 源码: sdk/php/lib/XSFieldScheme.class.php#L414 (显示) public function getCustomTokenizer(){ if (isset(self::$_tokenizers[$this->tokenizer])) { ...

120.XSSearch::setSynonymScale

...value) $value float 取值范围 0.01-2.55, 1 表示不调整 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L147 (显示) public function setSynonymScale($value){ $arg1 = XS_CMD_SEARCH_MISC_SYN_SCALE; $arg2 = max(0, (intva...

  • 时间不限
  • 按相关性排序