[MGNLEESOLR-112] Can not set sort ordering Created: 03/May/17  Updated: 11/May/18  Resolved: 07/May/18

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2

Type: Bug Priority: Neutral
Reporter: Mariusz Chruscielewski Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Solr support issues
Sprint: Kromeriz 145, Kromeriz 146
Story Points: 2

 Description   

Hi, it's not possible to set different ordering for SOLR results than ascending.

It's hardcoded in:
info.magnolia.search.solrsearchprovider.logic.providers.FacetedSolrSearchProvider#prepareSolrQuery:

if(this.model.getSortField() != null)

{ SortClause sortClause = SortClause.create(this.model.getSortField(), ORDER.asc); solrQuery.setSort(sortClause); }

In my opinion, it should also come from model (just like sortField)


Generated at Mon Feb 12 11:00:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.