I want to send a query to the Google Search Appliance that includes date range criteria of a meta field (lets call it metaDate). For example: metaDate field between 01.01.2010 and 01.01.2015. How can i construct a query such like this?
Google Search Appliance querying date meta field with given range
489 views Asked by metzelder At
2
There are 2 answers
2
On
You have to tell GSA to use metaDate as Lastmodifieddate either by adding it as Last-Modified response header or by configuring Document Dates in GSA admin console for metaDate. After the changes, reindex your documents and fire a date range query along with the query term. For example, q=someterm daterange:2010-01-01..2015-01-01
Mohan's not entirely correct. You can perform range searches on any metadata attribute. This is different then the document date. See Google's Documentation for this.
Also you can create a dynamic navigation element and test the format yourself. Dynamic Navigation can be used to construct range searches.