...($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this will cause file content be turncated $conn = substr($conn, 7); if (($sock = @fopen($conn, 'wb')) === false) { throw new XSException('Failed to open local file for wri...
...or zero size if ($len == 0) { return ''; } // loop to send data $this->check(); for ($buf = '', $size = $len;;) { $bytes = fread($this->_sock, $len); if ($bytes === false || strlen($bytes) == 0) { break; } $len -= strlen($bytes); $b...
... $size = strlen($buf)) == 0) { return true; } // loop to send data $this->check(); while (true) { $bytes = fwrite($this->_sock, $buf, $len); if ($bytes === false || $bytes === 0 || $bytes === $len) { break; } $len -= $bytes; $buf = sub...
...zeof(buf) - 1; if (vlen > ptr->len) vlen = ptr->len; _xdb_read_data(x, buf, ptr->off, vlen); vlen = ptr->len - buf[16] - 17; voff = ptr->off + buf[16] + 17; xdb_tree_plist list = (xdb_tree_plist) malloc(sizeof(xdb_tree_list)); list->key = (char*)malloc(buf[16]...
...信息 Array ( [0] => XSDocument Object ( [_data:private] => Array ( ) [_terms:private] => [_texts:private] => [_charset:private] => UTF-8 [_meta:private] => Array ...
XSDataSource All Packages | 属性 | 方法(函数) 包 XS.utilf 继承关系 abstract class XSDataSource 子类 XSCsvDataSource, XSDatabaseDataSource, XSJsonDataSource 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php 索引数据源抽象基类 ...
...nset XSComponent add() 添加文档到索引中 XSIndex addExdata() 批量提交索引命令封包数据 XSIndex addServer() 增加一个同步索引服务器 XSIndex addSynonym() 添加同义词 XSIndex beginRebuild() 开始重建索引 XSIndex clean() ...
...下: Array ( [0] => XSDocument Object ( [_data:XSDocument:private] => Array ( [id] => 4089 [name] => 思诺尔 亚麻水立方红色1.5米 [brand_name] => 思诺尔 [c_...
...安装的路径是 " /usr/local/xunsearch",同时我把文件夹里面的data软连接在"/mnt/xunsearch/x/data",这样便于管理,打开"/usr/local/xunsearch/data"其实就是打开"/mnt/xunsearch/x/data",文件会存放在"/mnt/xunsearch/x/data",这里需要注意设定好权限,不然会...
...安装的路径是 " /usr/local/xunsearch",同时我把文件夹里面的data软连接在"/mnt/xunsearch/x/data",这样便于管理,打开"/usr/local/xunsearch/data"其实就是打开"/mnt/xunsearch/x/data",文件会存放在"/mnt/xunsearch/x/data",这里需要注意设定好权限,不然会...