搜索

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

1.XSSearch::count

count() 方法 public int count(string $query=NULL) $query string 搜索语句, 若传入 null 使用默认语句, 调用后会还原默认排序方式 如果搜索语句和最近一次 search 语句一样, 请改用 getLastCount 以提升效率 最大长度为 80 字...

2.XSDataSource::getData

...c function getData(){ if ($this->dataPos === null || $this->dataPos === count($this->dataList)) { $this->dataPos = 0; $this->dataList = $this->getDataList(); if (!is_array($this->dataList) || count($this->dataList) === 0) { $this->deinit(); $this->dataLi...

3.XSSearch::getCorrectedQuery

...t = array(); try { if ($query === null) { if ($this->_count > 0 && $this->_count > ceil($this->getDbTotal() * 0.001)) { return $ret; } $query = $this->cleanFieldQuery($this->_query); } if (empty($query) || strpos($query, ':') !=...

4.XSUtil::parseOpt

...isset($_SERVER['argv']) ? $_SERVER['argv'] : array(); for ($i = 0; $i < count($params); $i++) { if ($params[$i] === '--') { for ($i = $i + 1; $i < count($params); $i++) { $result['-'][] = $params[$i]; } break; } elseif ($params[$i][0] ...

5.XSDatabaseDataSource

...>limit == 0) { $sql = preg_replace('/SELECT\s+.+?FROM\s/i', 'SELECT COUNT(*) AS count FROM ', $sql); $res = $this->db->query1($sql); $this->limit = $res['count'] - $this->offset; }}

6.XSSearch::setQuery

... } return $this;} 设置默认搜索语句 用于不带参数 count 或 search 以及 terms 调用 可与 addWeight 组合运用

7.XSJsonDataSource

...st(); } $item = json_decode($line, true); if (!is_array($item) || count($item) === 0) { switch (json_last_error()) { case JSON_ERROR_DEPTH: $error = ' - Maximum stack depth exceeded'; break; case JSON_ERROR_CTRL_CHAR: ...

8.XSSearch::search

...res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); $tmp = unpack('Icount', $res->buf); $this->_lastCount = $tmp['count']; // load vno map to name of fields $ret = $this->_facets = array(); $vnoes = $this->xs->getScheme()->getVnoMap(); // get result documents while (true) { ...

9.XSSearch::terms

... array(); $tmps = explode(' ', $res->buf); for ($i = 0; $i < count($tmps); $i++) { if ($tmps[$i] === '' || strpos($tmps[$i], ':') !== false) { continue; } $ret[] = $tmps[$i]; } if ($query === '') { $this->_terms =...

10.XSDataSource

...c function getData(){ if ($this->dataPos === null || $this->dataPos === count($this->dataList)) { $this->dataPos = 0; $this->dataList = $this->getDataList(); if (!is_array($this->dataList) || count($this->dataList) === 0) { $this->deinit(); $this->dataLi...

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