From a4e9207414a68b21cb8c4d0c404efd72f60cf290 Mon Sep 17 00:00:00 2001 From: anonymous <anonymous> Date: Wed, 12 Dec 2018 15:14:01 +0100 Subject: [PATCH] fix operator for solr --- ckanext/odsh/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index cd28532e..4d2e165a 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -343,7 +343,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm fq = search_params['fq'] - fq = '{fq} +extras_temporal_start:[{start_date} TO {end_date}] OR +extras_temporal_end:[{start_date} TO {end_date}]'.format(fq=fq, start_date=start_date, end_date=end_date) + fq = '{fq} (+extras_temporal_start:[{start_date} TO {end_date}] OR +extras_temporal_end:[{start_date} TO {end_date}])'.format(fq=fq, start_date=start_date, end_date=end_date) print(fq) -- GitLab