搜索

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

241.XSSearch::setDocOrder

...接操作 源码: sdk/php/lib/XSSearch.class.php#L317 (显示) public function setDocOrder($asc = false){ $type = XS_CMD_SORT_TYPE_DOCID | ($asc ? XS_CMD_SORT_FLAG_ASCENDING : 0); $cmd = new XSCommand(XS_CMD_SEARCH_SET_SORT, $type); $this->execCommand($cmd); return $this;} 设...

242.XSServer::close

...it 指令 源码: sdk/php/lib/XSServer.class.php#L198 (显示) public function close($ioerr = false){ if ($this->_sock && !($this->_flag & self::BROKEN)) { if (!$ioerr && $this->_sendBuffer !== '') { $this->write($this->_sendBuffer); $this->_sendBuffer = ''; ...

243.XSUtil::copyDir

... 源码: sdk/php/util/XSUtil.class.php#L194 (显示) public static function copyDir($src, $dst){ if (!($dir = @dir($src)) || (!is_dir($dst) && !@mkdir($dst, 0755, true))) { return false; } while (($entry = $dir->read()) !== false) { if ($entry === '.' || $entry === '.....

244.修正utf-8版make_xdb_file.php的错误

发布时间:2011-06-09 09:06 t By itlong

...] 所以要人为添加字符串处理涵数,针对utf-8。 [php] function msubstr($str, $start=0, $length, $charset="utf-8", $suffix = false){ $suffixStr = $suffix ? '…' : ''; $re['utf-8'] = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/";...

245.XSSearch::setDb

...接操作 源码: sdk/php/lib/XSSearch.class.php#L475 (显示) public function setDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_CMD_SEARCH_SET_DB, 'buf' => strval($name))); $this->_lastDb = $this->_curDb; $this->_lastDbs = $this->_curDbs; $this->_curDb = ...

246.XSTokenizerScws::setMulti

...操作 源码: sdk/php/lib/XSTokenizer.class.php#L270 (显示) public function setMulti($mode = 3){ $mode = intval($mode) & self::MULTI_MASK; $this->_setting['multi'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_MULTI, $mode); return $this;} 设置复合分词选项

247.建议能否增加一个检索过滤接口 SetFilter

更新时间:2012-02-26 23:02 t By stcer

...议search对象能否增加一个像sphinx api过滤接口: Prototype: function SetFilter ( $attribute, $values, $exclude=false ) 接口参考:http://sphinxsearch.com/docs/2.0.3/api-func-setfilter.html xunsearch使用比其它搜索引擎方便很多,祝越来越好!

248.XS::getIndex

...引操作对象 源码: sdk/php/lib/XS.class.php#L406 (显示) public function getIndex(){ if ($this->_index === null) { $adds = array(); $conn = isset($this->_config['server.index']) ? $this->_config['server.index'] : 8383; if (($pos = strpos($conn, ';')) !== false) { ...

249.XSComponent::__get

...xed 属性值 源码: sdk/php/lib/XS.class.php#L182 (显示) public function __get($name){ $getter = 'get' . $name; if (method_exists($this, $getter)) { return $this->$getter(); } // throw exception $msg = method_exists($this, 'set' . $name) ? 'Write-only' : 'Undefined';...

250.XSIndex::execCommand

...s_cmd 源码: sdk/php/lib/XSIndex.class.php#L44 (显示) public function execCommand($cmd, $res_arg = XS_CMD_NONE, $res_cmd = XS_CMD_OK){ $res = parent::execCommand($cmd, $res_arg, $res_cmd); foreach (self::$_adds as $srv) { $srv->execCommand($cmd, $res_arg, $res_cmd); } ...

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