You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by nc...@apache.org on 2019/08/22 20:23:43 UTC

[incubator-sdap-edge] branch master updated: SDAP-208 ICOADS plugin misconfiguration (#6)

This is an automated email from the ASF dual-hosted git repository.

nchung pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-edge.git


The following commit(s) were added to refs/heads/master by this push:
     new 23fac87  SDAP-208 ICOADS plugin misconfiguration (#6)
23fac87 is described below

commit 23fac875c326e5562ceafe56ec506c5209c1fe08
Author: fgreg <fg...@gmail.com>
AuthorDate: Thu Aug 22 13:23:39 2019 -0700

    SDAP-208 ICOADS plugin misconfiguration (#6)
    
    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) + ')')