搜索

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

231.[BUG] 文档更新 开启 openBuffer 报错

更新时间:2011-10-27 16:10 t By vist2007

...ents]: failed to open stream: Permission denied(2) thrown in ...\xunsearch\sdk\lib\XS.php on line 469

232.设置编码为gbk失效

发布时间:2012-07-12 11:07 t By 小乌龟

...的还是uft-8;求助我错在那里? require '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('allsource'); // 建立 XS 对象,项目名称为:demo $search = $xs->search; // 获取 搜索对象 $query = '部分'; // 这里的搜索语句很简单,就一个短语 $search->...

233.XSException 异常

...型的处理代码应类似下面的方式: ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; try { $xs = new XS('demo'); $docs = $xs->search->setQuery('hightman')->setLimit(5)->search(); foreach ($docs as $doc) { echo $doc->rank() . ". " . $doc->subject . " [" . $doc->percen...

234.迅搜报错

更新时间:2012-07-16 17:07 t By bustard

[XSException] ../../../usr/local/xunsearch/sdk/php/lib/XS.php(1552): Unexpected respond in search {CMD:129, ARG:514} 代码如下 $xs = new XS('discuz'); $tokenizer = new XSTokenizerScws; $subject = $tokenizer->getTops($forumattr['subject'], 20, 'n,ns'); $stack = array(); foreach($subject as $wor...

235.XSTokenizerScws::setDict

...n} XSTokenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L283 (显示) public function setDict($fpath, $mode = null){ if (!is_int($mode)) { $mode = stripos($fpath, '.txt') !== false ? SCWS_XDICT_TXT : SCWS_XDICT_XDB; } $this->_sett...

236.XSFieldScheme::getField

...FieldMeta 字段元数据对象, 若不存在则返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L93 (显示) public function getField($name, $throw = true){ if (is_int($name)) { if (!isset($this->_vnoMap[$name])) { if ($throw === true) { throw new ...

237.XSTokenizerScws::getResult

...是包含 [off:词在文本中的位置,attr:词性,word:词] 源码: sdk/php/lib/XSTokenizer.class.php#L339 (显示) public function getResult($text){ $words = array(); $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_RESULT, 0, $text); ...

238.XSException::getRelPath

...绝对路径 {return} string 转换后的相对路径 源码: sdk/php/lib/XS.class.php#L79 (显示) public static function getRelPath($file){ $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrp...

239.[enh] 改进 XS 配置文件缓存方式,避免有些平台失败

发布时间:2011-11-28 11:11 t By hightman

...r: Call to undefined method XSSearch::getFieldId() in /usr/local/xunsearch/sdk/php/lib/XS.php on line 337 经排查发现是eAccelerator 在处理 XSFieldScheme 的缓存对象时出现错误。 因此我们现在修改代码让序列化、反序列化发生成应用代码层面,来规避这...

240.XSSearch::count

... {return} int 匹配的搜索结果数量, 估算数值 源码: sdk/php/lib/XSSearch.class.php#L547 (显示) public function count($query = null){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_count !== null) { return $this->_cou...

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