搜索

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

1.建立索引不完整问题

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

... 'title' => $wiki->getTitle(), 'tag' => is_array($wiki->getTags()) ? implode(' ', $wiki->getTags()) : $wiki->getTags(), 'model' => $wiki->getModel(), 'content' => $wiki->getContent(), 'directory' => is_array($di...

2.XSFieldMeta::__construct

...__construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数

3.XSDocument::addIndex

...blic function addIndex($field, $text){ $field = strval($field); if (!is_array($this->_texts)) { $this->_texts = array(); } if (!isset($this->_texts[$field])) { $this->_texts[$field] = strval($text); } else { $this->_texts[$field] .= "\n" . strval($text); }} ...

4.XSDatabase::query1

...'', $sql); $sql .= ' LIMIT 1'; $res = $this->query($sql); return (is_array($res) && isset($res[0])) ? $res[0] : false;} 查询数据库首行

5.XSDocument::addTerm

...n addTerm($field, $term, $weight = 1){ $field = strval($field); if (!is_array($this->_terms)) { $this->_terms = array(); } if (!isset($this->_terms[$field])) { $this->_terms[$field] = array($term => $weight); } elseif (!isset($this->_terms[$field][$term])) { $this...

6.XSDataSource::getData

...s->dataPos = 0; $this->dataList = $this->getDataList(); if (!is_array($this->dataList) || count($this->dataList) === 0) { $this->deinit(); $this->dataList = $this->dataPos = null; return false; } } $data = $this->dataList[$this->dataPos]; ...

7.XSDocument::__construct

...ction __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $this->setCharset($p); return; } $this->_meta = unpack(self::$_resFormat...

8.XSSearch::highlight

... return $value; } // initlize the highlight replacements if (!is_array($this->_highlight)) { $this->initHighlight(); } // process replace if (isset($this->_highlight['pattern'])) { $value = preg_replace($this->_highlight['pattern'], $this->_highlight['replace'], $...

9.XSSearch::setFacets

... public function setFacets($field, $exact = false){ $buf = ''; if (!is_array($field)) { $field = array($field); } foreach ($field as $name) { $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$na...

10.XS::convert

... if ($to == $from) { return $data; } // array traverse if (is_array($data)) { foreach ($data as $key => $value) { $data[$key] = self::convert($value, $to, $from); } return $data; } // string contain 8bit characters if (is_string($data) && preg...

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