Search result Order in test center

0 views
Skip to first unread message

Rahul

unread,
May 14, 2013, 6:55:06 AM5/14/13
to Google-Search-...@googlegroups.com
Hi

Basically, when i search in test center of GSA, it gives me result by relevancy and then I click Sort By Date ( Sort By Date / Sort By Relevancy ) from right side of search result,
then it shows result as per last modified date of documents. But I want, by default it should show result by Sort by Date.

Where I need to make this change?

thanks,
Rahul

Dave Watts

unread,
May 14, 2013, 10:36:14 AM5/14/13
to Google-Search-...@googlegroups.com
To make it work differently in the test center, you'd need to edit the
XSLT and have it ignore the default sort parameter. I don't recommend
you do that. As I mentioned in my previous response, you should only
be concerned with how search works for your users, and should not be
concerned very much about how it works in the test center. For your
users, make sure that the search page URL has the appropriate sort
parameter, and you'll be all set.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

Rahul

unread,
May 15, 2013, 1:49:18 AM5/15/13
to Google-Search-...@googlegroups.com
Dave

My search query is as follows:

http://localhost:1234/search?access=p&output=xml&ie=UTF-8&oe=UTF-8&client=test&q=material&rc=1&filter=0&start=0&num=10&getfields=*&site=Material&entqr=3&entsp=kb_policy&sort=date:D:S:d1&requiredfields=-status%3AObsolete.-status%3AObselete&partialfields=vcmSys-typeName:test|vcmSys-typeName:Resource

Though i mentioned &sort=date:D:S:d1 its showing result by search term it found in document. I want to show result in sort by date fashion irrespective of search term relevancy. 

 I hit above URL in browser and I am getting following result in xml format :

<FS NAME="date" VALUE="2013-05-13"/>
<MT N="vcmSys-typeName" V="Material-1"/>
<MT N="external" V="Y"/>
<MT N="vcmSys-lastPublishDate" V="Thu May 09 01:37:58 EDT 2013"/>

<FS NAME="date" VALUE="2013-04-10"/>
<MT N="vcmSys-typeName" V="Ansys Training Material-2"/>
<MT N="external" V="Y"/>
<MT N="vcmSys-lastPublishDate" V="Wed Apr 10 04:32:28 EDT 2013"/>

I want it should sort result on the basis of vcmSys-lastPublishDate ( meta tag) value.

how can i make this possible.

thanks,
Rahul

Jeremy Garreau

unread,
May 15, 2013, 2:43:24 AM5/15/13
to Google-Search-...@googlegroups.com
Add a document dates rules under Crawl and Index > Document Dates for your URL pattern specifying the meta tags and the format (follow the admin console documentation, date format are strptime)

Mathias Bierl

unread,
May 15, 2013, 2:47:20 AM5/15/13
to Google-Search-...@googlegroups.com
You can only use one date to sort for. This has to be in the FS tag.
You can get it there as mentioned before under Crawl and Index/Document date
Reply all
Reply to author
Forward
0 new messages