Skip to content

[BUG] query.sortBy not working #2541

@rintisch

Description

@rintisch

Describe the bug
If plugin.tx_solr.search.query.sortBy = title asc is set it's not taken into account when searching. It's always sorted by relevance.
(Indexer contains the field title and it's also given as sorting field.)

Expected behavior
If this parameter is set the result shall be sorted as written in the statement above.

Used versions (please complete the following information):

  • TYPO3 Version: 8.7.30
  • Browser: *
  • EXT:solr Version: 8.1.2
  • Used Apache Solr Version: [e.g. 6.6.0]
  • PHP Version: 7.0.33
  • MySQL Version: 5.6.0

Additional context
Just a short hint: Classes > Search > SortingComponents.php > initializeSearchComponent() -> sortBy is taken into account but in same function setSorting is used once more. Afterwards it's sorted by relevance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions