发表回复 
 
主题评价:
  • 0 次(票) - 平均星级: 0
  • 1
  • 2
  • 3
  • 4
  • 5
增量索引不成功
2014年02月13日, 17:54
增量索引不成功
//保护迅搜文件
include SRCPATH.'libs/xunsearch/lib/XS.php';

$this->temp_db = $ci->load->database ( $table_db_array[$table], TRUE );
//建立 XS 对象
$xs = new XS($project_name);
//获取 索引对象
$index = $xs->index;
$doc = new XSDocument;
$result = array();
$result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array();
if(empty($result)){
$doc->setFields($result);
$res = $index->add($doc);
return false;
}


返回$res值为
object(XSIndex)#42 (9) {
["_buf":"XSIndex":private]=>
string(0) ""
["_bufSize":"XSIndex":private]=>
int(0)
["_rebuild":"XSIndex":private]=>
bool(false)
["xs"]=>
object(XS)#16 (6) {
["_index":"XS":private]=>
*RECURSION*
["_search":"XS":private]=>
NULL
["_scws":"XS":private]=>
NULL
["_scheme":"XS":private]=>
object(XSFieldScheme)#17 (3) {
["_fields":"XSFieldScheme":private]=>
array(24) {
["joinid"]=>
object(XSFieldMeta)#18 (7) {
["name"]=>
string(6) "joinid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(10)
["vno"]=>
int(0)
["tokenizer":"XSFieldMeta":private]=>
string(4) "full"
["flag":"XSFieldMeta":private]=>
int(1)
}
["id"]=>
object(XSFieldMeta)#19 (7) {
["name"]=>
string(2) "id"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(1)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["uid"]=>
object(XSFieldMeta)#20 (7) {
["name"]=>
string(3) "uid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(2)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["username"]=>
object(XSFieldMeta)#21 (7) {
["name"]=>
string(8) "username"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(3)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["tryid"]=>
object(XSFieldMeta)#22 (7) {
["name"]=>
string(5) "tryid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(4)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["companyid"]=>
object(XSFieldMeta)#23 (7) {
["name"]=>
string(9) "companyid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(5)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["title"]=>
object(XSFieldMeta)#24 (7) {
["name"]=>
string(5) "title"
["cutlen"]=>
int(60)
["weight"]=>
int(5)
["type"]=>
int(11)
["vno"]=>
int(6)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(19)
}
["keyword"]=>
object(XSFieldMeta)#25 (7) {
["name"]=>
string(7) "keyword"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(7)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["summary"]=>
object(XSFieldMeta)#26 (7) {
["name"]=>
string(7) "summary"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(8)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["faceimg"]=>
object(XSFieldMeta)#27 (7) {
["name"]=>
string(7) "faceimg"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(9)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg1"]=>
object(XSFieldMeta)#28 (7) {
["name"]=>
string(9) "smallimg1"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(10)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg2"]=>
object(XSFieldMeta)#29 (7) {
["name"]=>
string(9) "smallimg2"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(11)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg3"]=>
object(XSFieldMeta)#30 (7) {
["name"]=>
string(9) "smallimg3"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(12)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg4"]=>
object(XSFieldMeta)#31 (7) {
["name"]=>
string(9) "smallimg4"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(13)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["posttime"]=>
object(XSFieldMeta)#32 (7) {
["name"]=>
string(8) "posttime"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(14)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["digest"]=>
object(XSFieldMeta)#33 (7) {
["name"]=>
string(6) "digest"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(15)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["views"]=>
object(XSFieldMeta)#34 (7) {
["name"]=>
string(5) "views"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(16)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["replies"]=>
object(XSFieldMeta)#35 (7) {
["name"]=>
string(7) "replies"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(17)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["sharetimes"]=>
object(XSFieldMeta)#36 (7) {
["name"]=>
string(10) "sharetimes"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(18)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["parentid"]=>
object(XSFieldMeta)#37 (7) {
["name"]=>
string(8) "parentid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(19)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["cid"]=>
object(XSFieldMeta)#38 (7) {
["name"]=>
string(3) "cid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(20)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["version"]=>
object(XSFieldMeta)#39 (7) {
["name"]=>
string(7) "version"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(21)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["lastreplieuser"]=>
object(XSFieldMeta)#40 (7) {
["name"]=>
string(14) "lastreplieuser"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(22)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["lastreplies"]=>
object(XSFieldMeta)#41 (7) {
["name"]=>
string(11) "lastreplies"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(23)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
}
["_typeMap":"XSFieldScheme":private]=>
array(2) {
[10]=>
string(6) "joinid"
[11]=>
string(5) "title"
}
["_vnoMap":"XSFieldScheme":private]=>
array(24) {
[0]=>
string(6) "joinid"
[1]=>
string(2) "id"
[2]=>
string(3) "uid"
[3]=>
string(8) "username"
[4]=>
string(5) "tryid"
[5]=>
string(9) "companyid"
[6]=>
string(5) "title"
[7]=>
string(7) "keyword"
[8]=>
string(7) "summary"
[9]=>
string(7) "faceimg"
[10]=>
string(9) "smallimg1"
[11]=>
string(9) "smallimg2"
[12]=>
string(9) "smallimg3"
[13]=>
string(9) "smallimg4"
[14]=>
string(8) "posttime"
[15]=>
string(6) "digest"
[16]=>
string(5) "views"
[17]=>
string(7) "replies"
[18]=>
string(10) "sharetimes"
[19]=>
string(8) "parentid"
[20]=>
string(3) "cid"
[21]=>
string(7) "version"
[22]=>
string(14) "lastreplieuser"
[23]=>
string(11) "lastreplies"
}
}
["_bindScheme":"XS":private]=>
object(XSFieldScheme)#17 (3) {
["_fields":"XSFieldScheme":private]=>
array(24) {
["joinid"]=>
object(XSFieldMeta)#18 (7) {
["name"]=>
string(6) "joinid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(10)
["vno"]=>
int(0)
["tokenizer":"XSFieldMeta":private]=>
string(4) "full"
["flag":"XSFieldMeta":private]=>
int(1)
}
["id"]=>
object(XSFieldMeta)#19 (7) {
["name"]=>
string(2) "id"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(1)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["uid"]=>
object(XSFieldMeta)#20 (7) {
["name"]=>
string(3) "uid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(2)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["username"]=>
object(XSFieldMeta)#21 (7) {
["name"]=>
string(8) "username"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(3)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["tryid"]=>
object(XSFieldMeta)#22 (7) {
["name"]=>
string(5) "tryid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(4)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["companyid"]=>
object(XSFieldMeta)#23 (7) {
["name"]=>
string(9) "companyid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(5)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["title"]=>
object(XSFieldMeta)#24 (7) {
["name"]=>
string(5) "title"
["cutlen"]=>
int(60)
["weight"]=>
int(5)
["type"]=>
int(11)
["vno"]=>
int(6)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(19)
}
["keyword"]=>
object(XSFieldMeta)#25 (7) {
["name"]=>
string(7) "keyword"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(7)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["summary"]=>
object(XSFieldMeta)#26 (7) {
["name"]=>
string(7) "summary"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(8)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["faceimg"]=>
object(XSFieldMeta)#27 (7) {
["name"]=>
string(7) "faceimg"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(9)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg1"]=>
object(XSFieldMeta)#28 (7) {
["name"]=>
string(9) "smallimg1"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(10)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg2"]=>
object(XSFieldMeta)#29 (7) {
["name"]=>
string(9) "smallimg2"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(11)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg3"]=>
object(XSFieldMeta)#30 (7) {
["name"]=>
string(9) "smallimg3"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(12)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["smallimg4"]=>
object(XSFieldMeta)#31 (7) {
["name"]=>
string(9) "smallimg4"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(13)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["posttime"]=>
object(XSFieldMeta)#32 (7) {
["name"]=>
string(8) "posttime"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(14)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["digest"]=>
object(XSFieldMeta)#33 (7) {
["name"]=>
string(6) "digest"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(15)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["views"]=>
object(XSFieldMeta)#34 (7) {
["name"]=>
string(5) "views"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(16)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["replies"]=>
object(XSFieldMeta)#35 (7) {
["name"]=>
string(7) "replies"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(17)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["sharetimes"]=>
object(XSFieldMeta)#36 (7) {
["name"]=>
string(10) "sharetimes"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(1)
["vno"]=>
int(18)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["parentid"]=>
object(XSFieldMeta)#37 (7) {
["name"]=>
string(8) "parentid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(19)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["cid"]=>
object(XSFieldMeta)#38 (7) {
["name"]=>
string(3) "cid"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(20)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["version"]=>
object(XSFieldMeta)#39 (7) {
["name"]=>
string(7) "version"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(21)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["lastreplieuser"]=>
object(XSFieldMeta)#40 (7) {
["name"]=>
string(14) "lastreplieuser"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(22)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
["lastreplies"]=>
object(XSFieldMeta)#41 (7) {
["name"]=>
string(11) "lastreplies"
["cutlen"]=>
int(0)
["weight"]=>
int(1)
["type"]=>
int(0)
["vno"]=>
int(23)
["tokenizer":"XSFieldMeta":private]=>
int(0)
["flag":"XSFieldMeta":private]=>
int(0)
}
}
["_typeMap":"XSFieldScheme":private]=>
array(2) {
[10]=>
string(6) "joinid"
[11]=>
string(5) "title"
}
["_vnoMap":"XSFieldScheme":private]=>
array(24) {
[0]=>
string(6) "joinid"
[1]=>
string(2) "id"
[2]=>
string(3) "uid"
[3]=>
string(8) "username"
[4]=>
string(5) "tryid"
[5]=>
string(9) "companyid"
[6]=>
string(5) "title"
[7]=>
string(7) "keyword"
[8]=>
string(7) "summary"
[9]=>
string(7) "faceimg"
[10]=>
string(9) "smallimg1"
[11]=>
string(9) "smallimg2"
[12]=>
string(9) "smallimg3"
[13]=>
string(9) "smallimg4"
[14]=>
string(8) "posttime"
[15]=>
string(6) "digest"
[16]=>
string(5) "views"
[17]=>
string(7) "replies"
[18]=>
string(10) "sharetimes"
[19]=>
string(8) "parentid"
[20]=>
string(3) "cid"
[21]=>
string(7) "version"
[22]=>
string(14) "lastreplieuser"
[23]=>
string(11) "lastreplies"
}
}
["_config":"XS":private]=>
array(28) {
["project.name"]=>
string(27) "xs_skdata_sk_tryreport_list"
["project.default_charset"]=>
string(5) "utf-8"
["server.index"]=>
string(17) "192.168.1.78:8383"
["server.search"]=>
string(17) "192.168.1.78:8384"
["joinid"]=>
array(1) {
["type"]=>
string(2) "id"
}
["id"]=>
array(0) {
}
["uid"]=>
array(0) {
}
["username"]=>
array(0) {
}
["tryid"]=>
array(0) {
}
["companyid"]=>
array(0) {
}
["title"]=>
array(2) {
["type"]=>
string(5) "title"
["cutlen"]=>
string(2) "60"
}
["keyword"]=>
array(0) {
}
["summary"]=>
array(0) {
}
["faceimg"]=>
array(0) {
}
["smallimg1"]=>
array(0) {
}
["smallimg2"]=>
array(0) {
}
["smallimg3"]=>
array(0) {
}
["smallimg4"]=>
array(0) {
}
["posttime"]=>
array(1) {
["type"]=>
string(7) "numeric"
}
["digest"]=>
array(1) {
["type"]=>
string(6) "string"
}
["views"]=>
array(1) {
["type"]=>
string(7) "numeric"
}
["replies"]=>
array(1) {
["type"]=>
string(7) "numeric"
}
["sharetimes"]=>
array(1) {
["type"]=>
string(7) "numeric"
}
["parentid"]=>
array(0) {
}
["cid"]=>
array(0) {
}
["version"]=>
array(0) {
}
["lastreplieuser"]=>
array(0) {
}
["lastreplies"]=>
array(0) {
}
}
}
["_sock":protected]=>
resource(39) of type (stream)
["_conn":protected]=>
string(17) "192.168.1.78:8383"
["_flag":protected]=>
int(0)
["_project":protected]=>
string(27) "xs_skdata_sk_tryreport_list"
["_sendBuffer":protected]=>
string(0) ""
}
但是好像没有新增到索引里面,我搜索不到
查找这个用户的全部帖子
引用并回复
发表回复 


论坛跳转:


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