留言板
[Liferay 7] Search Portlet Results Order
Hi everyone,
My goal is to sort the search results by a particular field( create date ). I've tried to sort the results in jsp hook, but it isn't working with pagination. If there is more than one page, results are sorted for each page separately.
Perhaps, it's possible to define the order in this field SearchContext.Sorts . But I don't how to do it. I can't override SearchDisplayContext.
I use: Liferay Portal Search Web 1.1.20
Any help or advice will be useful
Thanks.
My goal is to sort the search results by a particular field( create date ). I've tried to sort the results in jsp hook, but it isn't working with pagination. If there is more than one page, results are sorted for each page separately.
Perhaps, it's possible to define the order in this field SearchContext.Sorts . But I don't how to do it. I can't override SearchDisplayContext.
I use: Liferay Portal Search Web 1.1.20
Any help or advice will be useful
Thanks.