How to sort the assets in alphanumeric at content finder? | Community
Skip to main content
mikezooz
Level 4
October 16, 2015
Solved

How to sort the assets in alphanumeric at content finder?

  • October 16, 2015
  • 7 replies
  • 3318 views

Hi All,

I am trying to customize the content finder, so added new button on the content finder and click on the button it has to show assets in alphanumeric order. i am looking for all the assets from DAM has to sort and display at content finder field.

i have done the customization on the EXTJS side, Sorting happens only on the last recent assets. But looking for all the assets from DAM has to sort.

 The default behavior of CQ is loads 20 assets from DAM with the last modified date using GQL Query.

i got a content finder service and try to change the order by from  lost modified into name, but its not working.

Is there any possible to achieve from CQ?

Thanks,

Michael

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 Lokesh_Shivalingaiah

If you are using AEM 6.x, make sure you have the relevant indexes created as oak doesnt index automatically

7 replies

edubey
Level 10
October 16, 2015
mikezooz
mikezoozAuthor
Level 4
October 16, 2015

edubey wrote...

Hi Michael,

Please take a look @ Content Finder Query Builder : https://adobe-consulting-services.github.io/acs-aem-commons/features/contentfinder-querybuilder.html

 

Hi Thanks for your reply.

we tried with query-builder. There is a big impact on our performance side. its take much time to load a page. :(

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

If you are using AEM 6.x, make sure you have the relevant indexes created as oak doesnt index automatically

edubey
Level 10
October 16, 2015

A possible solution would to do not execute this query on every page load rather you can implement your custom scheduler which will probably run every 2 hours or when loads on system is less. The task of scheduler will be store this result at some location from where content finder will pick. It will reduce your query execution as well as page load will not get affected.

mikezooz
mikezoozAuthor
Level 4
October 16, 2015

bsloki wrote...

If you are using AEM 6.x, make sure you have the relevant indexes created as oak doesnt index automatically

 

Hi,

Thanks for your reply. We are using 5.6.1. Its indexing only last modified date.

mikezooz
mikezoozAuthor
Level 4
October 16, 2015

edubey wrote...

A possible solution would to do not execute this query on every page load rather you can implement your custom scheduler which will probably run every 2 hours or when loads on system is less. The task of scheduler will be store this result at some location from where content finder will pick. It will reduce your query execution as well as page load will not get affected.

 

Hi Thanks for your idea.

as per your approach, whenever dam updated with new assets i can run the scheduler/ workflow to sort the assets and keep it in remote location.

edubey
Level 10
October 16, 2015
Whats the frequency of updation of assets In dam, I mean how often they are deleted and uploaded new one?