Can GSA search in given date range?

13 views
Skip to first unread message

Harun

unread,
Jun 15, 2010, 3:36:17 AM6/15/10
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
I am looking for seaching articles for a given date range.
Articles are available on websites, but dates come from database.

Is there a way to configure GSA to return results in given date range
(from database)?

Thanks,
Harun

brianb

unread,
Jun 15, 2010, 3:55:34 AM6/15/10
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
I assume you mean daterange search?

http://code.google.com/apis/searchappliance/documentation/64/xml_reference.html#request_query_terms

Then yes, this is possible. Just need to make sure the GSA has a way
to assign a date to your documents via metatag/content/URL etc. See
documentation for how to do this.

Brian

Dave Watts

unread,
Jun 15, 2010, 11:09:25 AM6/15/10
to google-search-...@googlegroups.com

As Brian indicated, you can certainly search by date. However, by
default, the appliance will use the date provided by the Last-Modified
HTTP response header. If that doesn't exist, then by default the
appliance will not associate any date with these documents. If these
articles are dynamically generated by something like
Java/.NET/PHP/ColdFusion, you should ensure that your program returns
the Last-Modified HTTP response header.

If you want to use something other than Last-Modified, you'll need to
configure the appliance to look for another value, such as a metadata
value, under Crawling ... Document Dates:

http://code.google.com/apis/searchappliance/documentation/64/admin_crawl/Introduction.html#docdatext

Now, if the value is really only available within the database, you'll
also need to build a metadata-and-URL feed to fetch the relevant
fields from the database and associate them with the document:

http://code.google.com/apis/searchappliance/documentation/64/feedsguide.html

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.

Reply all
Reply to author
Forward
0 new messages