File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Elasticsearch/Model/ResourceModel/Fulltext/Collection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \Elasticsearch \Model \ResourceModel \Fulltext \Collection ;
8
8
9
9
use Magento \CatalogSearch \Model \ResourceModel \Fulltext \Collection \SearchResultApplierInterface ;
10
- use Magento \Framework \Data \Collection ;
11
10
use Magento \Framework \Api \Search \SearchResultInterface ;
11
+ use Magento \Framework \Data \Collection ;
12
12
13
13
/**
14
14
* Resolve specific attributes for search criteria.
@@ -71,7 +71,7 @@ public function apply()
71
71
$ this ->collection ->getSelect ()->where ('e.entity_id IN (?) ' , $ ids );
72
72
$ orderList = join (', ' , $ ids );
73
73
$ this ->collection ->getSelect ()->reset (\Magento \Framework \DB \Select::ORDER );
74
- $ this ->collection ->getSelect ()->order ("FIELD(e.entity_id, $ orderList) " );
74
+ $ this ->collection ->getSelect ()->order (new \ Zend_Db_Expr ( "FIELD(e.entity_id, $ orderList) " ) );
75
75
}
76
76
77
77
/**
You can’t perform that action at this time.
0 commit comments