We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ffd8c5 commit e046edeCopy full SHA for e046ede
app/code/Magento/Elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchCriteriaResolver.php
@@ -79,7 +79,7 @@ public function resolve(): SearchCriteria
79
$this->builder->setPageSize($this->size);
80
$searchCriteria = $this->builder->create();
81
$searchCriteria->setRequestName($this->searchRequestName);
82
- $searchCriteria->setSortOrders($this->orders);
+ $searchCriteria->setSortOrders(array_merge(['relevance' => 'DESC'], $this->orders));
83
$searchCriteria->setCurrentPage($this->currentPage - 1);
84
85
return $searchCriteria;
0 commit comments