I want to read to top 10 search terms from magento.
This works:
$items = Mage::getModel( 'catalogsearch/query' )
->getCollection()
->setOrder("popularity")
->setPageSize( 10 )
->getItems();
foreach ( $items as $item )
{
echo sprintf("%s\n", $item->getQueryText());
}
But how can I get the results for each store-id?
Best Answer
i.e,
Refer this file