搜索

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

31.XSServer::read

read() 方法 protected string read(int $len) $len int 要读入的长度 {return} string 成功时返回读到的字符串 源码: sdk/php/lib/XSServer.class.php#L404 (显示) protected function read($len){ // quick return for zero size if ($len == 0) { retu...

32.XSSearch::getHotQuery

getHotQuery() 方法 public array getHotQuery(int $limit=6, string $type='total') $limit int 需要返回的热门搜索数量上限, 默认为 6, 最大值为 50 $type string 排序类型, 默认为 total(搜索总量), 可选值还有 lastnum(上周), currnum(本周) {re...

33.XSSearch::addQueryTerm

...() 方法 public XSSearch addQueryTerm(string $field, string $term, int $addOp=0, float $scale=1) $field string 索引词所属的字段, 若为混合区词汇可设为 null 或 body 型的字段名 $term string 索引词 (强制转为小写) $addOp int 与旧语句的...

34.XSSearch::addQueryString

addQueryString() 方法 public string addQueryString(string $query, int $addOp=0, float $scale=1) $query string 搜索语句 $addOp int 与旧语句的结合操作符, 如果无旧语句或为空则这此无意义, 支持的操作符有: XS_CMD_QUERY_OP_AND XS_C...

35.XSSearch::getRelatedQuery

...atedQuery() 方法 public array getRelatedQuery(string $query=NULL, int $limit=6) $query string 搜索语句, 若传入 null 使用默认语句 $limit int 需要返回的相关搜索数量上限, 默认为 6, 最大值为 20 {return} array 返回搜索词组成的数...

36.XSTokenizerScws

... addDict() 方法 public XSTokenizerScws addDict(string $fpath, int $mode=NULL) $fpath string 服务端的词典路径 $mode int 词典类型, 常量: SCWS_XDICT_XDB|SCWS_XDICT_TXT|SCWS_XDICT_MEM {return} XSTokenizerScws 返回对象本身以支持串接操作 ...

37.XSSearch::getExpandedQuery

...ExpandedQuery() 方法 public array getExpandedQuery(string $query, int $limit=10) $query string 需要展开的前缀, 可为拼音、英文、中文 $limit int 需要返回的搜索词数量上限, 默认为 10, 最大值为 20 {return} array 返回搜索词组成的...

38.XSServer

...tion connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this wi...

39.XSCommand.arg1

arg1 属性 public int $arg1; 参数1 取值范围 0~255, 具体含义根据不同的 CMD 而变化

40.XSCommand.arg2

arg2 属性 public int $arg2; 参数2 取值范围 0~255, 常用于存储 value no, 具体参照不同 CMD 而确定

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