File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,19 +42,6 @@ class Smile_ElasticSearch_Model_Resource_Catalog_Product_Collection extends Mage
4242 */
4343 protected $ _sortBy = array ();
4444
45-
46- /**
47- * Add some fields to filter.
48- *
49- * @param array $fields Field to be filtered and filter values
50- *
51- * @return Smile_ElasticSearch_Model_Resource_Catalog_Product_Collection
52- */
53- public function addFieldsToFilter ($ fields )
54- {
55- return $ this ;
56- }
57-
5845 /**
5946 * Stores query text filter.
6047 *
@@ -211,7 +198,7 @@ public function getSearchEngineQuery()
211198 $ this ->_searchEngineQuery = $ this ->_engine ->createQuery ('product ' );
212199
213200 if ($ this ->getStoreId ()) {
214- $ store = Mage::app ()->getStore ();
201+ $ store = Mage::app ()->getStore ($ this -> getStoreId () );
215202 $ this ->_searchEngineQuery ->setLanguageCode (Mage::helper ('smile_elasticsearch ' )->getLanguageCodeByStore ($ store ));
216203 }
217204 }
You can’t perform that action at this time.
0 commit comments