...以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L283 (显示) public function setDict($fpath, $mode = null){ if (!is_int($mode)) { $mode = stripos($fpath, '.txt') !== false ? SCWS_XDICT_TXT : SCWS_XDICT_XDB; } $this->_setting['set_dict'] = new XSCommand(XS_CMD_SE...
...存在则返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L93 (显示) public function getField($name, $throw = true){ if (is_int($name)) { if (!isset($this->_vnoMap[$name])) { if ($throw === true) { throw new XSException('Not exists field with vno: `...
...,attr:词性,word:词] 源码: sdk/php/lib/XSTokenizer.class.php#L339 (显示) public function getResult($text){ $words = array(); $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_RESULT, 0, $text); $res = self::$_server->execCommand($...
...rue/false 为值表示正序或逆序 $reverse bool 是否为倒序显示, 默认为正向, 此处和 setSort 略有不同 $relevance_first bool 是否优先相关性排序, 默认为否 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearc...
...tring 转换后的相对路径 源码: sdk/php/lib/XS.class.php#L79 (显示) public static function getRelPath($file){ $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, '/'); $to = ...
...果数量, 估算数值 源码: sdk/php/lib/XSSearch.class.php#L547 (显示) public function count($query = null){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_count !== null) { return $this->_count; } $cmd = new XSCommand(XS_CMD...
...象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L331 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $th...
...象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L306 (显示) public function delSynonym($raw, $synonym = null){ $raw = strval($raw); $synonym = $synonym === null ? '' : strval($synonym); if ($raw !== '') { $cmd = new XSCommand(XS_CMD_INDEX_SYNONYMS, XS_CMD_INDEX_...
...象以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L444 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $t...
...参数表示数据编码 源码: sdk/php/lib/XSDocument.class.php#L56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $th...