搜索

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

1.new MyDocument会找不到啊

发布时间:2014-07-10 15:07 t By 327532817

require_once 'xunsearch/lib/XS.php'; $xs = new XS('demo'); var_dump($xs); //到这里是正常的 $doc = new MyDocument; // Class 'MyDocument' not found 肯定没有这个类啊 我该怎么操作呢

2.XSIndex::update

... $key = $doc->f($fid); if ($key === null || $key === '') { throw new XSException('Missing value of primary key (FIELD:' . $fid . ')'); } // request cmd $cmd = new XSCommand(XS_CMD_INDEX_REQUEST, XS_CMD_INDEX_REQUEST_ADD); if ($add !== true) { $cmd->arg1 = XS_CMD_INDEX_RE...

3.XSSearch::addRange

... { if (strlen($from) > 255 || strlen($to) > 255) { throw new XSException('Value of range is too long'); } $vno = $this->xs->getField($field)->vno; $from = XS::convert($from, 'UTF-8', $this->_charset); $to = XS::convert($to, 'UTF-8', $this->_charset); ...

4.RE: 初次使用XS,关于平滑重建问题请教!

发布时间:2014-12-24 14:12 t By huye

$doc = new XSDocument; $doc->setFields($v); 改为 $doc = new XSDocument($v);

5.RE: Missing field of type ID

更新时间:2013-08-22 13:08 t By boxshadow

...了一个XS.php软连接到/usr/local/xunsearch/sdk/php/lib/XS.php $xs = new XS('../app/torrentkittys.ini') 和 $xs = new XS('torrentkittys'); $xs = new XS('../../../../usr/local/xunsearch/sdk/php/app/torrentkittys.ini'); 均不成功 均报错 Fatal error: Uncaught [XSException] ../../../../...

6.failed to open file

发布时间:2012-03-02 14:03 t By 张十三

...ongo(); $wiki_repo = $mongo->getRepository("Wiki"); $wiki_date = new MongoDate(0); $xs = new XS('demo'); $index = $xs->index; while (true) { $wikis = $wiki_repo->find(array("query" => array("created_at" => array('$gt' => $wiki_date)), "sort" => array("created_at" =>...

7.XS 项目

...码如下: ~~~ [php] require_once '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); // 自动使用 $prefix/sdk/php/app/demo.ini 作项目配置文件 $xs = new XS('/path/to/demo.ini'); // 使用 /path/to/demo.ini ~~~ > note: 自 v1.4.9 起,可以通过定义常量 XS_APP_ROOT 或设置这...

8.求助啊啊啊啊啊~~~同义词问题

更新时间:2014-04-22 09:04 t By zhouaini528

...onyms(true)就开启 但是我测试部行啊 附上代码: [php] $xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo $search=$xs->search; $search->setAutoSynonyms(true); $index->addSynonym('搜索','检索'); $index->addSynonym('搜索','查找'); [/php] 然后查看是否成功 ...

9.XSTokenizerScws

... $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance should be created before using ' . __CLASS__); } self::$_server = $xs->getScwsServer(); self::$_server->setTimeout(0); self::$_charset = $xs->getDefaultCharset(); ...

10.塔里木河的分词问题

发布时间:2013-06-08 12:06 t By wlx

...果。 require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php'; $xs=new XS('westdc'); $tokenizer = new XSTokenizerScws; $text = '塔里木河下游浅层地下水变化的生态效应及生态系统健康评价研究项目的汇交数据'; $words = $tokenizer->getResult($text); print_r($wor...

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