I am working with SharePoint online and have a requirement to show most popular document libraries in the entire site collection. We are using Classic UI so not looking to switch to modern for this functionality.

So if someone implemented any solution, please share how it can be leveraged in SPO. Thanks in advance.

  • Hos do you define "popular", most added/changed files within the last 24 hours or something else? Feb 3 '19 at 21:10
  • Yes pretty much that should be the explanation.
    – mdevm
    Feb 3 '19 at 21:24
  • Have you achieved that using the Content Search web part? I'm checking to see how things are going there. If this answered your question, please accept it as the best answer. Feb 15 '19 at 8:14

You can use a Content Search web part.

Change the query:

Switch to Advanced mode, use contentclass:"STS_List_DocumentLibrary" to restrict your search to get document libraries only. Learn more about contentclass.

enter image description here

Open the "Sorting" tab, sort the results by "LastModifiedTime".

enter image description here

Change the number of items to show:

enter image description here


There are several crawled properties for saving the modified date are mapped to "LastModifiedTime" managed property in SharePoint. Read this article for more information (same in SPO). It may cause the "LastModifiedTime" uses incorrect time.

For the default “Modified” column that contains the last modified date and time information in the list/library, you can move up “ows_Modified” crawl property to the top of the mappings for “LastModifiedTime” managed property. Or, you can create a managed property, map “ows_Modified” crawl property to this managed property and use this managed property instead of “LastModifiedTime” managed property in display template. Run a full crawl after changing managed properties or add new ones.

How to manage search schema in SharePoint Online

  • Thanks but I think you misunderstood my question, I am looking to display library names that are popular not document names. So its like showing top 5 library names which have been used most for document upload, edit etc in last 24 hours. Any thoughts?
    – mdevm
    Feb 4 '19 at 2:39
  • I changed my answer. please check Feb 4 '19 at 2:57
  • great thanks Joanna, I will test this out.
    – mdevm
    Feb 4 '19 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.