... new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods_id] type = id [cat_ids] index = both ...
...tensions/no-debug-non-zts-20060613/scws.so: undefined symbol: core_globals_id in Unknown on line 0 done [root@zjx sbin]# ./php-fpm restart Shutting down php_fpm . done Starting php_fpm Failed loading /usr/local/php51/lib/php/extensions/no-debug-non-zts-20060613/scws.so: /usr/local/php51/lib/ph...
...> $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; } } 这样之后还是...
我的问题: 1、id不能自然排序(放弃id排序功能了) 2、numeric数据乱码,但是排序正常,Quest.php查询也显示正,就是页面显示时乱码 以上问题要是numeric正常应该都会解决了. 不知道有没有跟我同样的问题??? 纠结了...
...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...
...数据关系的数据如何创建索引? 比如: article { id, title, content, } article_category { id, article_id, category } 假如说一个article包含N个article_category,我想根据article_category的内容对article做分面搜索,该怎...
checkValid() 方法 public bool checkValid(bool $throw=false) $throw bool 当没有通过检测时是否抛出异常, 默认为 false {return} bool 有效返回 true, 无效则返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L175 (显示) public function checkVali...
$arr = array(0=>array('id'=>1,'title'=>'啊','cat'=>1), 1=>array('id'=>2,'title'=>'啊2','cat'=>2) ……) 这个 我foreach ($arr as $val) { //获取分类 $arrTag = .........;//一维数组 $doc->setFields($data); $index->add($d...
... [_data:private] => Array ( [id] => 231859 [title] => 尖子生弃考留学成主流 不少学生脚踩两船 [lv1] => 3 [lv2] => 63 [lv3] => 0 [scho...
比如用于查询一个分类id及其所有子类id时,id可能不是连续区间,使用addRange()不好使. 用例:用户搜索一个关键字后 点击分面搜索结果(某一顶级分类)进一步过滤搜索 所以建议search对象能否增加一个像sphinx api过滤接口: Prototy...