File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,6 @@ class Smile_ElasticSearch_Model_Resource_Catalog_Product_Collection extends Mage
42
42
*/
43
43
protected $ _sortBy = array ();
44
44
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
-
58
45
/**
59
46
* Stores query text filter.
60
47
*
@@ -211,7 +198,7 @@ public function getSearchEngineQuery()
211
198
$ this ->_searchEngineQuery = $ this ->_engine ->createQuery ('product ' );
212
199
213
200
if ($ this ->getStoreId ()) {
214
- $ store = Mage::app ()->getStore ();
201
+ $ store = Mage::app ()->getStore ($ this -> getStoreId () );
215
202
$ this ->_searchEngineQuery ->setLanguageCode (Mage::helper ('smile_elasticsearch ' )->getLanguageCodeByStore ($ store ));
216
203
}
217
204
}
You can’t perform that action at this time.
0 commit comments