搜索

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

291.RE: 有没有简洁的php演示搜索代码

更新时间:2011-10-21 19:10 t By 3左3右

...ch.php(5): Undefined index: key(8) thrown in /home/boyce/xunsearch/sdk/php/lib/XS.php on line 469

292.设置编码为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->setQuery(...

293.迅搜报错

更新时间: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...

294.RE: LIBSCWS在WINDOWS下编译(C++调用,非PHP)

发布时间:2013-03-11 14:03 t By jasonniu

...quote='hightman' pid='3549' dateline='1362980859'] 能编译啊,选择 libscws 生成就可以了,有 libscws.lib [/quote] 请问你的完整的环境是什么 VS2008 SP1么? 我用的是VS2010 转换过后有很多错误 里面的VC6项目也是很多错误 [img]http://t2.qpic.cn/m...

295.XSTokenizerScws::setDict

...okenizerScws 返回对象本身以支持串接操作 源码: 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->_setting['set...

296.RE: addRange后count不准确

更新时间:2014-10-07 22:10 t By xilin

...,我可以确认是bug,我有一个同事独立安装xapian和scws,利用lib/xs.php的内容,作了修改,得出的值明显是准确的.也就是xapian本身可以得出相对正常的结果,但是使用xunsearch后,在多重排序后,结果不正确

297.XSFieldScheme::getField

...a 字段元数据对象, 若不存在则返回 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 XSExcept...

298.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); $res =...

299.set ignore bug ?全角数字不见了

发布时间:2011-11-03 13:11 t By xjtdy888

这2天在用您的scws lib做开发, 发现scws_set_ignore后,全角的数字会给去掉 再测试了自带的scws程序,加上-I选项后也是同样的,全角字符不显示 下面是我的测试。 [xxxxxx@www etc]$ scws -r rules.utf8.ini -d dict.utf8.xdb -c utf-8 -I 今天花了...

300.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 = strrpos($file,...

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