Liferay - Sort Search Container Result

4 comments
To sort liferay search container result follow below steps.

1) Create liferay search container in your JSP.




2) Create search container in your controller and set result in search container object.

3) Get sorted results using dynamic query.

Next PostNewer Post Previous PostOlder Post Home

4 comments:

  1. hi, nce work..can u sahre the code once pls.

    ReplyDelete
  2. I don't have sample portlet for this . But you can use the code snippet i posted in this blog.

    ReplyDelete
  3. I am having 4 drop down i want to change the search result according to the drop down values ,Like if i want to values from particular state than it should show the complete state results .
    I used DynamicQueryFactoryUtil and criterion for this .Please give me any suggestion for this ..

    ReplyDelete
    Replies
    1. What problem you are facing ? Read the user selected inputs and pass the same in dynamic query to filter records.

      Delete