...是利用 多文档联查 setDb() 方法 可是,会报错哦。 $search = new XS('goods_a'); $key = 'ipad'; // $index = $search->index; // $index->setDb('goods_b'); $search->search->setDb('goods_b'); $docs = $search->search->setQuery($key)->search(); --------------------- error : ...
[php] echo '搜索结果'; $xs = new XS('test1'); $index = $xs->index; $index = setDb('test2'); $search = $xs->searcg; $docs = $search->addDb('test2')->setFuzzy->setQuery($key)->search(); [/php] 请问这种写法有错么?
...怎么样能拿到每个子索引库,转换出来的内容呢[hr] $xs->search->setDb('products'); $words3 = $xs->search->getExpandedQuery($searchText); print_r($words3); //这样也不行