Skip to content

Commit 9d21109

Browse files
authored
Merge pull request #1066 from WildMeOrg/verbatimEventdate_is_text_indexing
Ensure Encounter.verbatimEventDate is indexed as plain text and not date in OpenSearch
2 parents abdeebf + bf974c7 commit 9d21109

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/ecocean/Encounter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,6 +4445,7 @@ public org.json.JSONObject opensearchMapping() {
44454445
"{\"type\": \"keyword\", \"normalizer\": \"wildbook_keyword_normalizer\"}");
44464446
map.put("date", new org.json.JSONObject("{\"type\": \"date\"}"));
44474447
map.put("dateSubmitted", new org.json.JSONObject("{\"type\": \"date\"}"));
4448+
map.put("verbatimEventDate", new org.json.JSONObject("{\"type\": \"text\"}"));
44484449
map.put("individualTimeOfBirth", new org.json.JSONObject("{\"type\": \"date\"}"));
44494450
map.put("individualTimeOfDeath", new org.json.JSONObject("{\"type\": \"date\"}"));
44504451
map.put("locationGeoPoint", new org.json.JSONObject("{\"type\": \"geo_point\"}"));

0 commit comments

Comments
 (0)