搜索

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

181.XSSearch::setFuzzy

...turn} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L84 (显示) public function setFuzzy($value = true){ $this->_defaultOp = $value === true ? XS_CMD_QUERY_OP_OR : XS_CMD_QUERY_OP_AND; return $this;} 开启模糊搜索 默认情况只返...

182.导入mysql数据库一张表,数据导入成功,但是搜索不错来

发布时间:2012-04-27 12:04 t By weizhao

... 导入成功的时候说了失败0条。 [root@localhost util]# ./Quest.php wlg 北京 [XSException] ../lib/XS.php(2092): None of database avaiable(S#506) #0 ../lib/XS.php(1505): XSServer->execCommand(Object(XSCommand), 206) #1 Quest.php(221): XSSearch->search() #2 {main} 请问怎么解...

183.XSCommand

... class XSCommand » XSComponent 版本 1.0.0 源代码 sdk/php/lib/XSServer.class.php XSCommand 命令对象 是与服务端交互的最基本单位, 命令对象可自动转换为通讯字符串, 命令结构参见 C 代码中的 struct xs_cmd 定义, 头部长度为 8字节. ...

184.咨询2个建索引的问题

发布时间:2013-05-29 16:05 t By coos

... 1、我使用--rebuild建索引,会提示: [XSException] ../lib/XS.php(2233): DB has been rebuilding(S#407) #0 ../lib/XS.php(1198): XSServer->execCommand(Array, 257) #1 Indexer.php(241): XSIndex->beginRebuild() #2 {main} [b]这是咋回事?[/b] 2、我又换成--stop-rebuild,可...

185.XSSearch::setSynonymScale

...turn} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L147 (显示) public function setSynonymScale($value){ $arg1 = XS_CMD_SEARCH_MISC_SYN_SCALE; $arg2 = max(0, (intval($value * 100) & 255)); $cmd = new XSCommand(XS_CMD_SEARCH_SET_MISC, $arg...

186.XSIndex::beginRebuild

...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L391 (显示) public function beginRebuild(){ $this->execCommand(array('cmd' => XS_CMD_INDEX_REBUILD, 'arg1' => 0), XS_CMD_OK_DB_REBUILD); $this->_rebuild = true; return $this;} 开始...

187.RE: 不能增加索引,每次列队数加1

发布时间:2012-09-03 15:09 t By deling007

$index->flushIndex(); 或 php Indexer.php --flush -p /var/www/xunsearch/goods.ini 用过后队列数还是没有改变,索引还是没有增加进去,仿佛就在缓存队列中,然后我就把xs重启,队列数据变成0条了,然后我就$index->add($doc),对列数据又增加成一...

188.XSSearch::addSearchLog

...数据 $wdf int 需要记录的次数, 默认为 1 源码: sdk/php/lib/XSSearch.class.php#L831 (显示) public function addSearchLog($query, $wdf = 1){ $cmd = array('cmd' => XS_CMD_SEARCH_ADD_LOG, 'buf' => $query); if ($wdf > 1) { $cmd['buf1'] = pack('i', $wdf); } $th...

189.Missing value of primarky key

发布时间:2012-12-21 16:12 t By 973432436

... 致命的运行时错误(E_ERROR) Uncaught [XSException] ../xunsearch/sdk/php/lib/XS.php(1018): Missing value of primarky key (FIELD:_ID) thrown /var/www/xunsearch/sdk/php/lib/XS.php 1018 我的查询语句是:SELECT `ID` as _ID,`title` as _title,`Content` as _body,`QuestionTime` as _time,`Us...

190.XSSearch::getRelatedQuery

... 20 {return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L707 (显示) public function getRelatedQuery($query = null, $limit = 6){ $ret = array(); $limit = max(1, min(20, intval($limit))); // Simple to disable query with field filter if ($quer...

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