...nd 对象 源码: sdk/php/lib/XSServer.class.php#L279 (显示) public function execCommand($cmd, $res_arg = XS_CMD_NONE, $res_cmd = XS_CMD_OK){ // create command object if (!$cmd instanceof XSCommand) { $cmd = new XSCommand($cmd); } // just cache the cmd for those need not an...
...phpext/php_scws.c:25: /usr/local/php5/include/php/Zend/zend_execute.h: In function 'safe_free_zval_ptr_rel': /usr/local/php5/include/php/Zend/zend_execute.h:67: error: too many arguments to function 'ts_resource_ex' /usr/local/php5/include/php/Zend/zend_execute.h: In function 'i_zend_is_true': /...
..._blocking() expects parameter 1 to be resource, null given(2) #0 [internal function]: xs_error_handler(2, 'stream_set_bloc...', '/home/wwwroot/x...', 2205, Array) #1 sdk/php/lib/XS.php(2205): stream_set_blocking(NULL, true) #2 sdk/php/lib/XS.php(2025): XSServer->connect() #3 sdk/php/lib/XS.php(2011)...
..._blocking() expects parameter 1 to be resource, null given(2) #0 [internal function]: xs_error_handler(2, 'stream_set_bloc...', '/home/wwwroot/x...', 2205, Array) #1 sdk/php/lib/XS.php(2205): stream_set_blocking(NULL, true) #2 sdk/php/lib/XS.php(2025): XSServer->connect() #3 sdk/php/lib/XS.php(2011)...
...串 源码: sdk/php/lib/XSFieldScheme.class.php#L452 (显示) public function toConfig(){ // type $str = "[" . $this->name . "]\n"; if ($this->type === self::TYPE_NUMERIC) { $str .= "type = numeric\n"; } elseif ($this->type === self::TYPE_DATE) { $str .= "type = date\n...
...r_dump(SCWS('中文分词解析,我的个神啊')); //中文分词解析 function SCWS($title) { set_time_limit(0); $data = array("data"=>$title,"respond"=>"json","ignore"=>'yes', "multi"=>3); $data = http_build_query($data); $re = web_socket("http://www.ftphp.com/scws/api.php",0,$data); ...
...组 源码: sdk/php/lib/XSFieldScheme.class.php#L514 (显示) public function fromConfig($config){ // type & default setting if (isset($config['type'])) { $predef = 'self::TYPE_' . strtoupper($config['type']); if (defined($predef)) { $this->type = constant($predef...
...n/php/php5.2.6/ext/" 这样的时候报错 Fatal error: Call to undefined function scws_new() in D:\wamp\www\tl\text.php on line 4 我设为空的时候还是同样的错误。 都弄好之后我重启的所有服务。 谁测试通过了,给指点一下,谢谢了!
...档列表 源码: sdk/php/lib/XSSearch.class.php#L572 (显示) public function search($query = null, $saveHighlight = true){ if ($this->_curDb !== self::LOG_DB && $saveHighlight) { $this->_highlight = $query; } $query = $query === null ? '' : $this->preQueryString($query); $p...
...yzFilter.php ~~~ [php] class XSXyzFilter implements XSDataFilter { public function process($data, $cs) { print_r($data); return $data; } public function processDoc($doc) { // $doc->addTerm('subject', '特殊词'); } } ~~~ 自定义数据源 ----------- 目前数据源有两种类型...