__construct() 方法 public void __construct($arg=NULL) $arg 源码: sdk/php/lib/XSTokenizer.class.php#L79 (显示) public function __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = $arg; }}
...getDefaultCharset() {return} string 默认字符集(已大写) 源码: sdk/php/lib/XS.class.php#L387 (显示) public function getDefaultCharset(){ return isset($this->_config['project.default_charset']) ? strtoupper($this->_config['project.default_charset']) : 'UTF-8';} ...
[quote='hina' pid='7464' dateline='1398851554'] 感觉XUNSEARCH资料很少啊 [/quote] 是呢...我是看了update的源码才确认的update操作会删除再重新add 现在我只想更新doc下面的某一个field....
...cheme $fs) $fs XSFieldScheme 一个有效的字段方案对象 源码: sdk/php/lib/XS.class.php#L334 (显示) public function setScheme(XSFieldScheme $fs){ $fs->checkValid(true); $this->_scheme = $fs; if ($this->_search !== null) { $this->_search->markResetScheme(); }...
setUtf8() 方法 public void setUtf8() 源码: sdk/php/util/XSDataSource.class.php#L600 (显示) public function setUtf8(){ pg_set_client_encoding($this->link, 'UTF8');} 将输出字符集设置为 UTF-8
...alue) $name string 字段名称 $value mixed 字段值 源码: sdk/php/lib/XSDocument.class.php#L309 (显示) public function offsetSet($name, $value){ if (!is_null($name)) { $this->__set(strval($name), $value); }} ArrayAccess 接口, 设置字段值, 勿直接...
...blic void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L116 (显示) public function getTokens($value, XSDocument $doc = null){ $terms = array(); for ($i = 0; $i < strlen($value); $i += $this->arg) { $terms[] = substr($value...
__destruct() 方法 public void __destruct() 源码: sdk/php/lib/XS.class.php#L304 (显示) public function __destruct(){ $this->_index = null; $this->_search = null;} 析构函数 由于对象交叉引用, 如需提前销毁对象, 请强制调用该函数
... connect(array $param) $param array 连接参数, 包含: path 源码: sdk/php/util/XSDataSource.class.php#L699 (显示) public function connect($param){ if (($this->link = sqlite_open($param['path'])) === false) { throw new XSException("Can not open sqlite file: '{$param['pat...
...n() 方法 public void open(string $conn) $conn string 源码: sdk/php/lib/XSSearch.class.php#L55 (显示) public function open($conn){ parent::open($conn); $this->_prefix = array(); $this->_fieldSet = false; $this->_lastCount = false;} 连接搜索服务端并...