...是uft-8;求助我错在那里? require '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('allsource'); // 建立 XS 对象,项目名称为:demo $search = $xs->search; // 获取 搜索对象 $query = '部分'; // 这里的搜索语句很简单,就一个短语 $search->setQue...
... public void __construct($arg=NULL) $arg 源码: sdk/php/lib/XSTokenizer.class.php#L106 (显示) public function __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw n...
... public void __construct($arg=NULL) $arg 源码: sdk/php/lib/XSTokenizer.class.php#L137 (显示) public function __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw n...
... XSTokenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L316 (显示) public function setDuality($yes = true){ $this->_setting['duality'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_DUALITY, $yes === false ? 0 : ...
...索、搜索建议和纠错等内容。 [url]http://www.xunsearch.com/doc/php/guide/util.logger[/url] 2. 小修改大提升,支持自定义 SCWS 分词词典,文本格式。但旧有索引必须重建,新增的词汇才能生效。 [url]http://www.xunsearch.com/doc/php/guide/index.dict[/u...
...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L404 (显示) public function endRebuild(){ if ($this->_rebuild === true) { $this->_rebuild = false; $this->execCommand(array('cmd' => XS_CMD_INDEX_REBUILD, 'arg1' => 1), XS_CMD_OK_...
... string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class.php#L843 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { $info = $this->obj->errorInfo(); throw new...
[quote='hpxl' pid='7811' dateline='1400033006'] sdk/php/app/demo.ini配置 [id] type = id [/quote] 是scws-1.2.2 的如何让它支持自已定义的英文词库? 像http://bbs.xunsearch.com/showthread.php?tid=3088 这样修改代码吗?
...c] index = mixed [addtime] type = date tokenizer = none [/code] [php] ./Indexer.php --source=mysql://root:root@localhost/blog --sql="select b.bid,b.content AS bc,b.addtime,b.title,c.content AS CC from blog b,comment c where b.bid = c.bid" /usr/local/xunsearch/sdk/php/app/59n.ini [/php] ...
...以后,返回什么结果是正确的结果呢 /usr/local/xunsearch/sdk/php/util/Quest.php -p demo -c gbk -q 桌面 --limit=2 返回 Object id #10 0 ../lib/XS.php(2246): XSServer->read(8) 1 ../lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3...