搜索

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

11.使用scws例子报错,附上全部细节,请大牛帮忙

更新时间:2013-05-06 20:05 t By sojet

...ce, null given in E:\soft\PHPnow-1.5.6\htdocs\phpstudy\fenci.php on line 5 Array ( [0] => Array ( [word] => � [off] => 0 [len] => 1 [idf] => 0 [attr] => un ) ) Array ( [0] => Array ( [word] => 戏 [off] => 1 [len] => 2 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 适 [off] => 3 [len] => 2...

12.failed to open file

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

...index = $xs->index; while (true) { $wikis = $wiki_repo->find(array("query" => array("created_at" => array('$gt' => $wiki_date)), "sort" => array("created_at" => 1), "limit" => 100)); if (!$wikis) break; foreach ($wikis as $wiki) { $array = array( ...

13.请教为什么我这个无法分割成功啊?

发布时间:2011-07-05 20:07 t By cool

...: 40KB/sec 在PHP里面运行后:显示 我|是|一|个|中|国|人|Array ( [0] => Array ( [word] => 我 [off] => 0 [len] => 3 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 是 [off] => 3 [len] => 3 [idf] => 0 [attr] => un ) [2] => Array ( [word] => 一 [off] => 6 [len] => 3 [idf] => 0 [...

14.建立索引不完整问题

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

... $index->openBuffer(); foreach ($wikis as $wiki) { $array = array( 'pid' => (string)$wiki->getId(), 'title' => $wiki->getTitle(), 'tag' => is_array($wiki->getTags()) ? implode(' ', $wiki->getTags()) : $wiki->getTags(), ...

15.获取索引对象就报错supplied argument is not a valid stream resource

更新时间:2012-08-09 17:08 t By blueo

...ivate] => [_scheme:private] => XSFieldScheme Object ( [_fields:private] => Array ( [newsid] => XSFieldMeta Object ( [name] => newsid [cutlen] => 0 [weight] => 1 [type] => 10 [vno] => 0 [tokenizer:private] => full [flag:private] => 1 ) [title] => XSFieldMeta Object ( [name] => title [cutlen] => 0 [we...

16.搜索条件可以使数组吗?

发布时间:2012-05-25 17:05 t By latsu

...多字段搜索呢? 我的方法: [php] public function getShopRows($array = array()){ Yii::import('application.vendors.sdk.php.lib.XS'); $xs = new XS('shop'); $query = "regionId:".$array['regionId']; //return $query;exit; $ShopDoc = $xs->search->setCharset...

17.XSIndex::del

...>getFieldId() : $this->xs->getField($field); // get commands $cmds = array(); $terms = is_array($term) ? array_unique($term) : array($term); $terms = XS::convert($terms, 'UTF-8', $this->xs->getDefaultCharset()); foreach ($terms as $term) { $cmds[] = new XSCommand(XS_CMD_INDEX_R...

18.XSDocument::setFields

setFields() 方法 public void setFields(array $data) $data array 字段名及其值组成的数组 源码: sdk/php/lib/XSDocument.class.php#L154 (显示) public function setFields($data){ if ($data === null) { $this->_data = array(); $this->_meta = $this->_terms...

19.增量索引不成功

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

...earch/lib/XS.php'; $this->temp_db = $ci->load->database ( $table_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, arr...

20.载入txt词典所出现的BUG

更新时间:2011-08-09 12:08 t By 999

... 第一次运行的结果:([color=#FF0000][b]正常[/b][/color]) Array ( [0] => Array ( [word] => 印第安那 [times] => 1 [weight] => 15.979999542236 [attr] => ns ) [1] => Array ( [wo...

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