搜索

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

271.XSSearch::getExpandedQuery

...搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L755 (显示) public function getExpandedQuery($query, $limit = 10){ $ret = array(); $limit = max(1, min(20, intval($limit))); try { $buf = XS::convert($query, 'UTF-8', $this->_charset); $cmd = array('cmd' =>...

272.XSJsonDataSource::getDataList

...d void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L295 (显示) protected function getDataList(){ // read line (check to timeout?) $line = ''; while (true) { $buf = fgets($this->fd, 8192); if ($buf === false || strlen($buf) === 0) { break; ...

273.XSSearch::addRange

...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L349 (显示) public function addRange($field, $from, $to){ if ($from === '' || $from === false) { $from = null; } if ($to === '' || $to === false) { $to = null; } if ($from !== null || $to !== null) { ...

274.XSIndex::addExdata

...象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L253 (显示) public function addExdata($data, $check_file = true){ if (strlen($data) < 255 && $check_file && file_exists($data) && ($data = file_get_contents($data)) === false) { throw new XSException('Failed t...

275.XSIndex::del

...象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L220 (显示) public function del($term, $field = null){ // get field $field = $field === null ? $this->xs->getFieldId() : $this->xs->getField($field); // get commands $cmds = array(); $terms = is_array($term) ? array...

276.XSServer::execCommand

...应的 XSCommand 对象 源码: sdk/php/lib/XSServer.class.php#L279 (显示) public function execCommand($cmd, $res_arg = XS_CMD_NONE, $res_cmd = XS_CMD_OK){ // create command object if (!$cmd instanceof XSCommand) { $cmd = new XSCommand($cmd); } // just cache the cmd for tho...

277.XSFieldMeta::toConfig

...置文件字符串 源码: sdk/php/lib/XSFieldScheme.class.php#L452 (显示) public function toConfig(){ // type $str = "[" . $this->name . "]\n"; if ($this->type === self::TYPE_NUMERIC) { $str .= "type = numeric\n"; } elseif ($this->type === self::TYPE_DATE) { $str .=...

278.XSFieldMeta::fromConfig

...配置属性数组 源码: sdk/php/lib/XSFieldScheme.class.php#L514 (显示) public function fromConfig($config){ // type & default setting if (isset($config['type'])) { $predef = 'self::TYPE_' . strtoupper($config['type']); if (defined($predef)) { $this->type = c...

279.Xunsearch SDK for PHP

...象,可以集成到 debug 模块中, 可在调试工具条和面板中显示 `xunsearch` 有关的查询以及耗时情况。 要想启用这个很容易,只要在主配置文件中加入以下代码: ```php // ... 'bootstrap' => ['debug'], 'modules' => [ 'debug' => [ ...

280.获取搜索结果

...索,就像 `Google` 上通常搜索结果中对于某一个网站只会显示 2 条最匹配的结果, 其余的归并折叠起来。 在 `Xunsearch` 中,通过 [XSSearch::setCollapse] 可以设置按照指定字段的值归并搜索结果,其中第二参数可以 指定归并后返回数...

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