...里木,会搜索不到结果。 require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php'; $xs=new XS('westdc'); $tokenizer = new XSTokenizerScws; $text = '塔里木河下游浅层地下水变化的生态效应及生态系统健康评价研究项目的汇交数据'; $words = $tokenizer->getR...
...toString() {return} string 异常的简要描述信息 源码: sdk/php/lib/XS.class.php#L149 (显示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->_file) . '(' . $this->_line . '): '; $string .= $this->getMessage() . '(' . $this->getCod...
...cal() {return} bool 是返回 true, 不是返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L367 (显示) public function isSpeical(){ return ($this->type == self::TYPE_ID || $this->type == self::TYPE_TITLE || $this->type == self::TYPE_BODY);} 判断当前字段是否为...
...n} XSTokenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L256 (显示) public function setIgnore($yes = true){ $this->_setting['ignore'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_IGNORE, $yes === false ? 0 :...
...称 {return} bool 若存在为 true, 反之为 false 源码: sdk/php/lib/XS.class.php#L221 (显示) public function __isset($name){ return method_exists($this, 'get' . $name);} 魔术方法 __isset 判断模拟属性是否存在并可读取
...dex() {return} bool 是返回 true, 不是返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L345 (显示) public function isBoolIndex(){ if ($this->flag & self::FLAG_NON_BOOL) { return false; } return (!$this->hasIndex() || $this->tokenizer !== XSTokenizer::DFL);}...
...n} XSTokenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L242 (显示) public function setCharset($charset){ self::$_charset = strtoupper($charset); if (self::$_charset == 'UTF8') { self::$_charset = 'UTF-8'; } return $this;} ...
...操作呢?如下终端(ssh中执行的)语句:/usr/local/xunsearch/sdk/php/util/Indexer.php --rebuild --source=mysql://root:111111@localhost/dbo --sql="select * from user" --project=sokc,怎么写php脚本(类似后台的东西)达到同样的建立索引效果呢?
... void autoload(string $name) $name string 类的名称 源码: sdk/php/lib/XS.class.php#L533 (显示) public static function autoload($name){ $file = XS_LIB_ROOT . '/' . $name . '.class.php'; if (file_exists($file)) { require_once $file; }} 智能加载类库文件 ...
...toString() {return} string 异常的简要描述信息 源码: sdk/php/lib/XS.class.php#L67 (显示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->getFile()) . '(' . $this->getLine() . '): '; $string .= $this->getMessage() . ($this->getC...