$collection2 = Mage::getResourceModel('catalogsearch/fulltext_collection');
$collection2->addAttributeToSelect('sku')
->addAttributeToFilter(array(array('attribute'=> 'sku','like' => $queryText.'%')))
->addAttributeToFilter(array(array('attribute'=> 'name','like' => '%'.$queryText.'%'),array('attribute'=> 'short_description','like' => '%'.$queryText.'%')))
->setStore(Mage::app()->getStore())
->addMinimalPrice()
->addFinalPrice()
->addTaxPercents()
->addStoreFilter()
->addUrlRewrite();
我希望此代码应该通过首先匹配sku
与文本,然后是name
和short_description
的其他过滤器,
任何人都知道这可能吗?