require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...
[b][XSErrorException] ../../usr/local/xunsearch/sdk/php/lib/XS.php(2213): stream_set_blocking(): supplied argument is not a valid stream resource(2)[/b] 代码: try { include '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSExceptio...
XSSearch All Packages | 属性 | 方法(函数) 包 XS 继承关系 class XSSearch » XSServer » XSComponent 版本 1.0.0 源代码 sdk/php/lib/XSSearch.class.php XS 搜索类, 执行搜索功能 有部分方法支持串接操作 $xs->search->setQuery($str)->se...
...用后会还原默认排序方式 如果搜索语句和最近一次 search 的语句一样, 请改用 getLastCount 以提升效率 最大长度为 80 字节 {return} int 匹配的搜索结果数量, 估算数值 源码: sdk/php/lib/XSSearch.class.php#L547 (显示) public f...
...出现下面的错误: Fatal error: Uncaught [XSException] ../../../../search/sdk/php/lib/XS.php(2094): Couldn't stat 'data/dream/log_db'(S#515) thrown in /search/sdk/php/lib/XS.php on line 2094 请问是怎么回事呢?谢谢[hr] [root@localhost php]# util/Quest.php --suggest dream m 目...
...ndScheme) { $this->_scheme = $this->_bindScheme; if ($this->_search !== null) { $this->_search->markResetScheme(true); } }} 还原字段方案为项目绑定方案
util.searchskel直接生成默认的搜索 代码 ,你在那个基础 上修改就行了。 也可以参见util.Quest里的写法,真要简单搜索 也就大概下面几句就行了: [code] $xs = new XS('demo'); $docs = $xs->search->search('关键字'); print_r($docs); [/code]
...me $fs){ $fs->checkValid(true); $this->_scheme = $fs; if ($this->_search !== null) { $this->_search->markResetScheme(); }} 设置当前在用的字段方案
[XSException] ThinkPHP/Extend/Vendor/sdk/php/lib/XS.php(2087): Unknown Internal Error(S#600) 现在又报这个错误 我执行最新的程序后查看了下执行后的日志: 2012-12-10 13:39:13 worker1[17463] new connection (SOCK:7, IP:127.0.0.1, BURST:1) 2012-12-10 13:39:13 worker1[17463] [soc...
... if ($this->_scws === null) { $conn = isset($this->_config['server.search']) ? $this->_config['server.search'] : 8384; $this->_scws = new XSServer($conn, $this); } return $this->_scws;} 创建 scws 分词连接