When working with the Google Search Appliance (GSA), sometimes the business requirements include sorting and/or filtering the results. Browsing the internet did not provide any helpful pointers for how to sort or filter the search results therefore I have written these instructions to use sorting & filtering easily with examples.
Sorting
The Google Search Appliance (GSA) has provided the tags to sort the results in ascending or descending order. Pages should have meta tags that provide the information to GSA box for crawling. Using those tags, sorting can be done.
For example
If the web pages have a tag:
- <meta name="title" content="Sumit Bajaj::Passionate Technologist" />
- &sort=meta:title:a (for arranging all results in ascending order w.r.t title)
- &sort=meta:title:d (for arranging all results in descending order w.r.t title)
Filtering
Similarly sorting meta tags can be used for filtering as well. The Google Search Appliance (GSA) has provided the provision to filter the results too. Pages should have meta tags that provide information to the GSA box for crawling. These tags can be used for filtering the output.
For example
If web pages have a tag:
- <meta name="articledate" content="2014-10-12" />
- &query=inmeta:articledate:daterange:2014-01-01.. (all article whose articledate is greater than 2014-01-01)
- &query=inmeta:articledate:daterange:2013-01-01..2014-01-01(all article whose articledate is in between 2013-01-01 & 2014-01-01)
- &query=inmeta:articledate:daterange:..2014-01-01 (all article whose articledate is lesser than 2014-01-01)
Reference
Google Search Appliance document
For more details, you can contact me on "[email protected]" or visit my website:
http://www.bajajsumit.com
Enjoy coding and build the best.
Sumit Bajaj

Gowtham RajamanickamPosted Apr 25, 2015, 6:31 AM
this is great
Gowtham RajamanickamPosted Apr 25, 2015, 6:31 AM
good
Dinesh BeniwalPosted Oct 17, 2014, 12:39 PM
Great work sumit
Guest UserPosted Oct 14, 2014, 3:47 AM
good one @Sumit B