Uploaded image for project: 'Solr Search Provider'
  1. Solr Search Provider
  2. MGNLEESOLR-112

Can not set sort ordering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.2
    • None
    • None

    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)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdivilek Milan Divilek
              mchruscielewski Mariusz Chruscielewski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD