Skip to content

Commit

Permalink
Merge pull request #851 from WildMeOrg/Encounter-lifeStage-allow-hyphens
Browse files Browse the repository at this point in the history
Set the appropriate OpenSearch class to support hyphens in lifeStage …
  • Loading branch information
JasonWildMe authored Oct 29, 2024
2 parents 63f1938 + 6ab5330 commit 28b60d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/ecocean/Encounter.java
Original file line number Diff line number Diff line change
Expand Up @@ -4105,6 +4105,7 @@ public org.json.JSONObject opensearchMapping() {
map.put("individualDisplayName", keywordNormalType);
map.put("organizations", keywordNormalType);
map.put("otherCatalogNumbers", keywordNormalType);
map.put("lifeStage", keywordNormalType);

// https://stackoverflow.com/questions/68760699/matching-documents-where-multiple-fields-match-in-an-array-of-objects
map.put("measurements", new org.json.JSONObject("{\"type\": \"nested\"}"));
Expand Down

0 comments on commit 28b60d8

Please sign in to comment.