Use publication timestamp field

This commit is contained in:
Mikael Karlsson 2014-10-27 16:05:08 +02:00
parent f9bbffe050
commit 9ae8ec562f
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class DateSearchPlugin(plugins.SingletonPlugin):
# Add a date-range query with the selected start and/or end dates into the Solr facet queries.
fq = search_params['fq']
log.debug("fq: {0}".format(fq))
fq = '{fq} +metadata_modified:[{sd} TO {ed}]'.format(fq=fq, sd=start_date, ed=end_date)
fq = '{fq} +extras_PublicationTimestamp:[{sd} TO {ed}]'.format(fq=fq, sd=start_date, ed=end_date)
log.debug("fq: {0}".format(fq))
search_params['fq'] = fq