...ower($type2)) . 'DataSource'; if (!class_exists($class)) { throw new XSException("Undefined data source type: `$type2'"); } return new $class($type, $arg);} 取得数据源对象实例
...database ( $table_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array(); ...
...可直接赋值或取值, 也支持数组方式访问文档字段. $doc = new XSDocument; $doc->name = 'value'; // 用对象属性方式进行赋值、取值 $doc['name'] = 'value'; // 用数组下标方式进行赋值、取值 $value = $doc->f('name'); // 用函数方式进行取值 $doc->setField...
...; } if (!class_exists($name)) { throw new XSException('Undefined custom tokenizer `' . $this->tokenizer . '\' for field `' . $this->name . '\''); } } $obj = $arg === null ? new $name : new $name($arg); if (!$obj instanceof XSTokeni...
...checking for scws.h of scws... yes: /usr/local/xunsearch checking for scws_new in -lscws... yes checking for xapian.h of xapian-core... yes: /usr/local/xunsearch checking for correct xapian version... ok checking for library of xapian-core... ok checking for pthread_mutex_init in -lpthread... yes ch...
...php://stdin'; } if (!($this->fd = fopen($file, 'r'))) { throw new XSException("Can not open input file: '$file'"); } $this->line = 0;}