Skip to content

Commit

Permalink
Merge pull request #142 from soay/devel
Browse files Browse the repository at this point in the history
add pid, ciation_url and further_info_url to list of fields that shou…
  • Loading branch information
sashakames committed Jul 30, 2020
2 parents 0b4cf59 + ef70165 commit bb3b2b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/java/main/esg/search/config/projects.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mapping file for CMIP5 projects
# mapping file for projects
cmip3:CMIP3
cmip4:CMIP4
cmip5:CMIP5
Expand All @@ -13,3 +13,5 @@ pmip3:PMIP3
geomip:GeoMIP
euclipse:EUCLIPSE
cordex:CORDEX
cordex-reklies:CORDEX-Reklies
cordex-esd:CORDEX-ESD
12 changes: 9 additions & 3 deletions src/java/main/esg/search/query/api/QueryParameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class QueryParameters {
final public static String FIELD_MIN_VERSION = "min_version";
final public static String FIELD_SCORE = "score";
final public static String FIELD_UNITS = "units";

final public static String FIELD_CHECKSUM = "checksum";
final public static String FIELD_CHECKSUM_TYPE = "checksum_type";
final public static String FIELD_INDEX_NODE = "index_node";
Expand All @@ -63,7 +63,12 @@ public class QueryParameters {
final public static String FIELD_DATETIME_START = "datetime_start";
final public static String FIELD_DATETIME_STOP = "datetime_stop";
final public static String FIELD_TEXT = "text";


// metadata fields for CMIP6
final public static String FIELD_PID = "pid";
final public static String FIELD_CITATION_URL = "citation_url";
final public static String FIELD_FURTHER_INFO_URL = "further_info_url";

// special query fields for open search geo extension
public final static String FIELD_BBOX ="bbox"; // west, south, east, north
public final static String FIELD_LAT ="lat";
Expand Down Expand Up @@ -118,7 +123,8 @@ public class QueryParameters {
FIELD_VARIABLE_UNITS,
FIELD_GEO, FIELD_GEO_UNITS,
FIELD_TIMESTAMP_, FIELD_VERSION_,
FIELD_SCORE, FIELD_UNITS
FIELD_SCORE, FIELD_UNITS,
FIELD_PID, FIELD_CITATION_URL, FIELD_FURTHER_INFO_URL
});


Expand Down

0 comments on commit bb3b2b1

Please sign in to comment.