https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30327 --- Comment #6 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Martin Renvoize from comment #4)
So it looks to me like you can use search_compat instead of simple_search_compat and that allows passing more options.. including a sort_by index name (see C4::Search::GetRecords for the underlying list)... though it appears the ES implementation of search_compat doesn't support such a sort_by as yet :(.
Must admit.. I'm not fully up to speed on how simple_search_compat and search_compat compare.
Do we have any idea on what index/field component results should actually be sorted on?
So the sort_by options are expected to be part of the query by the time we hit the search_compat routines - they should have been passed to and handled by the 'build_query_compat' routine - though we don't call that in 'get_components_query' - but I suspect we should add that call there and handle the sort correctly -- You are receiving this mail because: You are watching all bug changes.