You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
Currently there doesn’t appear to be anything in QueryComponentFactory that copies the sort order over from the BaseQuery object to Solarium’s query object.
The suggested format in the docs (sorry for using blame view, apparently you can’t link to specific lines of markdown on Github without using it...) also appears to be incorrect, as solarium expects an array in the format of <field> => <dir> rather than an indexed array of strings which contain both the field name and direction.
As usual, my workaround is in the onBeforeSearch() hook: