...> $vT) { $arr1 =array(); $search->setQuery($queryTagFace.' AND goods_tag_id:'.$kT)->setFacets('goods_tag_id')->search(); $arr1 = $search->getFacets('goods_tag_id'); if($arr1) { foreach ($arr1 as $kx => $vs) { $tagCount[$kT] += $vs; } }else{ $tagCount[$kT] = 0; } } 这样之后还是...
.../xunsearch/sdk/php/lib/XS.php(1018): Missing value of primarky key (FIELD:_ID) thrown /var/www/xunsearch/sdk/php/lib/XS.php 1018 我的查询语句是:SELECT `ID` as _ID,`title` as _title,`Content` as _body,`QuestionTime` as _time,`UserNam` as _user,`tag` as _tag FROM wenti_nr Where `search`=...
...于里面没有删除时间,所以更新索引时记录了下已删除的id,而且添加数据时的默认创建时间和编辑时间相同,所以我下面区分添加编辑时用相等判断,可根据情况自己改写,可能还有很多不完善的,请高手多指教。也可以到这...
...r.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric index = self tokenizer = full [forward] type = numeric index = sel...
...utf-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [id] type = id [title] type = string [content] type = string [date] type = numeric 服务器和sdk分开部署 添加文档代码 但是我运行
非常感谢 我去试试[hr] 加上 --enable-maintainer-zts 参数也不行 php 5.2.13 [root@zjx phpext]# /usr/local/php/bin/phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 [root@zjx phpext]# ./configure --with-scws...
错误:Object id #13 Failed to recv the data from server completely (SIZE:0/8, REASON:closed) searchd日志里面全是这个。。。大家有没有类似的问题哈? 2w7篇wp日志而已,源是100M左右,索引后是600M 索引服务器是Pentium(R) D CPU 3.40GHz 4G内存。。。 2013-...
[quote='hightman' pid='355' dateline='1323925796'] 第 2. 点你可以对分类 id 不为 0 的统一在做索引时 $doc->addTerm('cid', 'have') 然后在搜索的时候 $search->addWeight('cid', 'have') 来提权 [/quote] 呵呵,是的,避开0就行了
...host ~]# Indexer.php --source=mysql://xxx@localhost/phpcms --sql="SELECT a.id,a.title,a.url,a.catid,FROM_UNIXTIME (inputtime,'%Y%m%d' ) as inputtime,ad.content,c.catname,c.url as caturl FROM v9_dede_article AS a LEFT JOIN v9_dede_article_data as ad on a.id=ad.id LEFT JOIN v9_category as c on a.c...
...如下 SCWS 1.0.3 test file2. SimpledCWS Object ( [handle] => Resource id #2 ) 這個現象是否說明編譯完成的 scws.so 有問題?