发表回复 
 
主题评价:
  • 0 次(票) - 平均星级: 0
  • 1
  • 2
  • 3
  • 4
  • 5
数据插不进去
2017年12月12日, 11:57 (这个帖子最后修改于: 2017年12月12日 12:01 by 331000274.)
数据插不进去
try{

// 创建文档对象
$doc = new \XSDocument;
$doc->setFields($param);

// 添加到索引数据库中
$ret = $this->_xs->index->add($doc);
var_dump($ret);
return $ret;
}catch (XSException $e){
var_dump($e->getTraceAsString());
return $e;
}

一直返回这个,是什么问题???
object(XSIndex)[254]
private '_buf' => string '' (length=0)
private '_bufSize' => int 0
private '_rebuild' => boolean false
public 'xs' =>
object(XS)[151]
private '_index' =>
&object(XSIndex)[254]
private '_search' => null
private '_scws' => null
private '_scheme' =>
object(XSFieldScheme)[156]
private '_fields' =>
array (size=4)
...
private '_typeMap' =>
array (size=3)
...
private '_vnoMap' =>
array (size=4)
...
private '_bindScheme' =>
object(XSFieldScheme)[156]
private '_fields' =>
array (size=4)
...
private '_typeMap' =>
array (size=3)
...
private '_vnoMap' =>
array (size=4)
...
private '_config' =>
array (size=8)
'project.name' => string 'demo' (length=4)
'project.default_charset' => string 'utf-8' (length=5)
'server.index' => string '8383' (length=4)
'server.search' => string '8384' (length=4)
'pid' =>
array (size=1)
...
'subject' =>
array (size=1)
...
'message' =>
array (size=1)
...
'chrono' =>
array (size=1)
...
protected '_sock' => resource(170, stream)
protected '_conn' => string '8383' (length=4)
protected '_flag' => int 0
protected '_project' => string 'demo' (length=4)
protected '_sendBuffer' => string '' (length=0)
查找这个用户的全部帖子
引用并回复
发表回复 


论坛跳转:


正在浏览该主题的用户: 1 个游客