You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by fg...@apache.org on 2019/08/22 20:15:38 UTC
[incubator-sdap-edge] branch SDAP-208 created (now fe34460)
This is an automated email from the ASF dual-hosted git repository.
fgreg pushed a change to branch SDAP-208
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-edge.git.
at fe34460 SDAP-208 ICOADS plugin misconfiguration
This branch includes the following new commits:
new fe34460 SDAP-208 ICOADS plugin misconfiguration
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-sdap-edge] 01/01: SDAP-208 ICOADS plugin misconfiguration
Posted by fg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
fgreg pushed a commit to branch SDAP-208
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-edge.git
commit fe344603f29a1b948afed1332a4ebaf97e96a76c
Author: fgreg <fg...@gmail.com>
AuthorDate: Thu Aug 22 13:15:35 2019 -0700
SDAP-208 ICOADS plugin misconfiguration
I think the wrong document fields were being used for the Solr query.
---
src/main/python/plugins/icoads/json/Writer.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/python/plugins/icoads/json/Writer.py b/src/main/python/plugins/icoads/json/Writer.py
index f52336c..dfd5163 100644
--- a/src/main/python/plugins/icoads/json/Writer.py
+++ b/src/main/python/plugins/icoads/json/Writer.py
@@ -65,12 +65,11 @@ class Writer(SolrTemplateResponseWriter):
elif key == "qualityFlag":
if 'variable' in parameters:
if parameters['variable'].lower() == 'sss':
- filterQueries.append('(SSS_quality:[*%20TO%20'+value+'])')
+ filterQueries.append('(sss_qc_flag:[*%20TO%20'+value+'])')
elif parameters['variable'].lower() == 'sst':
- filterQueries.append('(SST_quality:[*%20TO%20'+value+'])')
+ filterQueries.append('(sst_qc_flag:[*%20TO%20'+value+'])')
elif parameters['variable'].lower() == 'wind':
- filterQueries.append('(wind_quality:[*%20TO%20'+value+'])')
- filterQueries.append('(wind_direction_quality:[*%20TO%20'+value+'])')
+ filterQueries.append('(wind_qc_flag:[*%20TO%20'+value+'])')
elif key == 'platform':
if type(value) is list:
filterQueries.append('platform:(' + '+OR+'.join(value) + ')')