Skip to content

Commit

Permalink
Update generate.sh to replace wildcard and match_only_text with keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Dec 23, 2024
1 parent 45b4cc5 commit 7ab44d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ecs/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ generate_mappings() {
# Replace "wildcard" type (showing as "unknown" on dashboard) with "keyword"
echo "Replacing \"wildcard\" type with \"keyword\""
find "$OUT_DIR" -type f -exec sed -i 's/wildcard/keyword/g' {} \;

# Replace "match_only_text" type (showing as "unknown" on dashboard) with "keyword"
echo "Replacing \"match_only_text\" type with \"keyword\""
find "$OUT_DIR" -type f -exec sed -i 's/match_only_text/keyword/g' {} \;

# Replace "flattened" type (not supported by OpenSearch) with "flat_object"
echo "Replacing \"flattened\" type with \"flat_object\""
Expand Down

0 comments on commit 7ab44d7

Please sign in to comment.