Working with Google Search Appliance(GSA), sometimes business has requirement of sorting or filtering the results. Browsing the internet did not provide any helpful pointers for the ways to sort or filter the search results therefore I have written these instructions to use sorting & filtering in easy way with examples.
Sorting:
Google Search Appliance(GSA) has provided the tags to sort the results in ascending or descending order. Pages should have meta tags which provides information to GSA box for crawling. Using those tags, sorting can be achieved.
For example: If web pages has a tag
<meta name="title" content="Sumit Bajaj::Passionate Technologist" />
GSA URL should include parameter to sort the results
Similarly it can be sorted for another meta tags.
Filtering:
Similar like sorting meta tags can be used for filtering as well. Google Search Appliance(GSA) has provided the provision to filter the results too. Pages should have meta tags which provides information to GSA box for crawling. These tags can be used for filtering the output.
Sorting:
Google Search Appliance(GSA) has provided the tags to sort the results in ascending or descending order. Pages should have meta tags which provides information to GSA box for crawling. Using those tags, sorting can be achieved.
For example: If web pages has a tag
<meta name="title" content="Sumit Bajaj::Passionate Technologist" />
GSA URL should include parameter to sort the results
&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)
&sort=meta:title:d (for arranging all results in descending order w.r.t title)
Similarly it can be sorted for another meta tags.
Filtering:
Similar like sorting meta tags can be used for filtering as well. Google Search Appliance(GSA) has provided the provision to filter the results too. Pages should have meta tags which provides information to GSA box for crawling. These tags can be used for filtering the output.
For example: If web pages has a tag
<meta name="articledate" content="2014-10-12" />
GSA URL should include parameter to filter the results
Similarly we can modify the tags and syntax to get desired output.
Reference:
Google Search Appliance document
For more details, you can contact me on "email.bajaj@gmail.com" or visit my website
http://www.bajajsumit.com
Enjoy coding and build the best.
Sumit Bajaj
<meta name="articledate" content="2014-10-12" />
GSA URL should include parameter to filter the results
&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)
(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)
Similarly we can modify the tags and syntax to get desired output.
Google Search Appliance document
For more details, you can contact me on "email.bajaj@gmail.com" or visit my website
http://www.bajajsumit.com
Enjoy coding and build the best.
Sumit Bajaj
Comments
Post a Comment