...t()){ $doc->addTerm('cid', $node->getId()); } } 搜索 $search->setFacets(array('cid'), true); $search->search(); $counts = $search->getFacets('cid');
...,然后统一在一起就解决了,哎,暂时就这样吧,希望xunsearch 啥时候可以针对 split(|) 分割的字段进行分面搜索 $arrTag = array(9000,9001,9002……); $tagCount = array(); foreach ($arrTag as $kT => $vT) { $arr1 =array(); $search->setQuery($queryTagFace.' ...
[quote='bigxu' pid='8902' dateline='1419909241'] http://www.xunsearch.com/site/search?q=addterm http://www.xunsearch.com/site/search?q=%E8%A6%81%E6%B1%82%E6%90%9C%E7%B4%A2%E7%BB%93%E6%9E%9C%E4%B8%AD%E4%B8%8D%E5%90%AB%E7%89%B9%E5%AE%9A%E5%85%B3%E9%94%AE%E8%AF%8D [/quote] 我用的就是 addte...