[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Search results sorting by compound field elements



Hi all,
Anyone got a clue how to format the 'custom_order' parameter of a dataset search query to sort by sub-fields of a compound field?

i.e. - running a search over the 'user' dataset and I want to sort the results by name_family then name_given of the compound 'name' field.

Currently running (based on the search method from http://wiki.eprints.org/w/API:EPrints/DataSet#Object_Methods ):

$list = $ds->search( {"custom_order" => "name_given/name_family" };

But it doesn't seem to be sorting the list at all

Thanks,

Alan
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160420/11b0b4ab/attachment.html