How to search recently modified pages in AEM5.6 using OOTB search component | Community
Skip to main content
October 16, 2015
Solved

How to search recently modified pages in AEM5.6 using OOTB search component

  • October 16, 2015
  • 2 replies
  • 876 views

Using OOTB search component i want to display the latest modified pages , desc order, i.e last modified page should display first. Any suggestion will be of great help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ojjis

Hi,
i would try to create my own search component for this instead since the order in the OOB component is of relevance.
I have written some answers about customization and making your own search jsp page. See these links:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__mqzl-i_need_to_developa.html

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__mpgz-need_to_ristrictthe.html

Basically you just need to modify the ordering by criteria in those examples to suite your needs. Trying with the querybuilder api in the debug mode on your author is a great way to test everything firs (http://<server>:<port>/libs/cq/search/content/querydebug.html)

Good Luck
/Johan

2 replies

Ojjis
OjjisAccepted solution
New Participant
October 16, 2015

Hi,
i would try to create my own search component for this instead since the order in the OOB component is of relevance.
I have written some answers about customization and making your own search jsp page. See these links:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__mqzl-i_need_to_developa.html

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__mpgz-need_to_ristrictthe.html

Basically you just need to modify the ordering by criteria in those examples to suite your needs. Trying with the querybuilder api in the debug mode on your author is a great way to test everything firs (http://<server>:<port>/libs/cq/search/content/querydebug.html)

Good Luck
/Johan

New Participant
October 16, 2015

Hi,

 You can use OOTB sorting component. "Sort by date" will show latest result first.

Let me know if it works.

 

Thanks,