搜索

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

31.请教php的多表搜索

发布时间:2013-12-20 18:12 t By sundyandy

[php] echo '搜索结果'; $xs = new XS('test1'); $index = $xs->index; $index = setDb('test2'); $search = $xs->searcg; $docs = $search->addDb('test2')->setFuzzy->setQuery($key)->search(); [/php] 请问这种写法有错么?

32.XS::getIndex

... $conn = substr($conn, 0, $pos); } $this->_index = new XSIndex($conn, $this); $this->_index->setTimeout(0); foreach ($adds as $conn) { $conn = trim($conn); if ($conn !== '') { $this->_index->addServer($conn)->setTimeout(0); ...

33.RE: 关于XS:getExpandedQuery() 方法,获取展开的搜索词列表

发布时间:2011-12-06 17:12 t By popfeng

我实现了, $uid = $_GET['uid']; $tag = $_GET['tag']; $xs = new XS('demo'); $search = $xs->search; $search->setCharset('UTF-8'); $search->setQuery('uid:' . $uid); $docs = $search->search(); $terms = $search->getExpandedQuery...

34.为什么我更新的索引会没有数据呢?

更新时间:2012-09-28 10:09 t By zspoplar

...到。 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('zl'); $index = $xs->index; $doc = new XSDocument; $conn=mysql_connect("localhost", "root", "111111") or die("Could not connect: " . mysql_error()); mysql_select_db('zi, $conn) or die ('Can\'t use test : ' . mysql...

35.搜索建议完全匹配后,无返回。

发布时间:2014-06-09 21:06 t By aaron

如题,搜索建议完全匹配后,无返回。 例如我输入:宜芝 返回:宜芝多 我输入:宜芝多 返回:空数组[] 代码如下: $xs = new XS('test'); $search_res = $xs->search->getExpandedQuery($suggest_name);

36.XS::getSearch

... < count($conns); $i++) { try { $this->_search = new XSSearch($conns[$i], $this); $this->_search->setCharset($this->getDefaultCharset()); return $this->_search; } catch (XSException $e) { if (($i + 1) === count($conns)...

37.搜索建议,完全匹配后没有返回只

发布时间:2014-06-09 21:06 t By aaron

如题,搜索建议完全匹配后,无返回。 例如我搜索:宜芝 返回:宜芝多 我搜索:宜芝多 返回:空数组[] 代码如下: $xs = new XS('test'); $search_res = $xs->search->getExpandedQuery($suggest_name);

38.addRange后count不准确

发布时间:2013-12-19 16:12 t By xilin

$xs = new XS('my_test'); // $query = $xs->search->setQuery(); $search = $xs->search; $search->query = ''; $count = $search->addRange('price',600,1000)->count(); $search->addRange('price',600,1000)->search(); $count2 = $search->getLastCount(); echo $xs->sea...

39.建立索引不完整问题

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

[php] $xs = new Search('demo'); $index = $xs->index; $index->beginRebuild(); while (true) { //无视读取数据部分,一次读取100条数据 $index->openBuffer(); foreach ($wikis as $wiki) { $array = array( 'pid' => ...

40.XSTokenizerScws::getVersion

...Tokenizer.class.php#L327 (显示) public function getVersion(){ $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号

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