搜索

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

21.更新、修改文档

...内容部分', 'chrono' => time() ); // 创建文档对象 $doc = new XSDocument; $doc->setFields($data); // 更新到索引数据库中 $index->update($doc); ~~~ $Id$

22.XSTokenizerXlen

...lib/XSTokenizer.class.php#L116 (显示) public function getTokens($value, XSDocument $doc = null){ $terms = array(); for ($i = 0; $i < strlen($value); $i += $this->arg) { $terms[] = substr($value, $i, $this->arg); } return $terms;}

23.使用讯搜搭建phpwind的全文检索

更新时间:2012-05-18 09:05 t By myoula

... $thread['tid'] = $tid; $doc = new XSDocument; $doc->setFields($thread); $index->add($doc); } echo '200'; ...

24.请问: $index->add($doc)能调试的不

更新时间:2011-12-09 18:12 t By aecol

...长,省略了 // 创建文档对象 $doc = new XSDocument; $doc->setFields($data); if ($isnewdoc) { // 添加到索引数据库中 $index->add($doc); ...

25.XSTokenizerXstep

...lib/XSTokenizer.class.php#L147 (显示) public function getTokens($value, XSDocument $doc = null){ $terms = array(); $i = $this->arg; while (true) { $terms[] = substr($value, 0, $i); if ($i >= strlen($value)) { break; } $i += $this->arg; } retur...

26.XSIndex

...此自动关闭开启的 rebuild add() 方法 public XSIndex add(XSDocument $doc) $doc XSDocument {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L72 (显示) public function add(XSDocument $doc){ return $this->update(...

27.XSTokenizerScws

...lib/XSTokenizer.class.php#L220 (显示) public function getTokens($value, XSDocument $doc = null){ $tokens = array(); $this->setIgnore(true); // save charset, force to use UTF-8 $_charset = self::$_charset; self::$_charset = 'UTF-8'; $words = $this->getResult($value); foreach (...

28.XSSearch

...$this->search($type . ':1'); foreach ($result as $doc) /* @var $doc XSDocument */ { $body = $doc->body; $ret[$body] = $doc->f($type); } $this->restoreDb(); } catch (XSException $e) { if ($e->getCode() != XS_CMD_ERR_XAPIAN) { throw $e; ...

29.Xunsearch SDK for PHP

...这些关键词检索到数据,但并非数据的字段值 // 用法与 XSDocument::addTerm() 和 XSDocument::addIndex() 等同 // 通常在 ActiveRecord::beforeSave() 中做这些操作 $model->addTerm('subject', 'hi'); $model->addIndex('subject', '你好,世界'); // 如需删除数据则可...

30.增量索引不成功

发布时间:2014-02-13 17:02 t By lzc2523700

...ect_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array(); if(empty($result)){ $doc->setFields($result); $res = $index->add($doc); ret...

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