Search code examples
google-search-appliance

GSA get latest results in a collection without q param


I'm trying to get the latest results inserted into a collection (ordered by data) on the homepage. I haven't a 'q' parameter because the user doesn't make a search yet in the homepage. So, there's a way to do this? Maybe a special character, I didn't find anything in the documentation.


Solution

  • You could utilize the site: query to get all content from your site like

    q=site%3Ahttp%3A%2F%2Fwww.yoururl.com&sort=date%3AD%3AS%3Ad1
    

    (site:http://www.yoururl.com URL encoded)