Skip to content

Commit

Permalink
Support match_only_text in Go code generator (#1418) (#1419)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Page <[email protected]>
  • Loading branch information
ebeahan and djptek authored May 17, 2021
1 parent 24ee3c1 commit b468e6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Thanks, you're awesome :-) -->

#### Added

* Support `match_only_text` data type in Go code generator. #1418

#### Improvements

#### Deprecated
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmd/gocodegen/gocodegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func goDataType(fieldName, elasticsearchDataType string) string {
}

switch elasticsearchDataType {
case "keyword", "wildcard", "version", "constant_keyword", "text", "ip", "geo_point":
case "keyword", "wildcard", "version", "constant_keyword", "text", "match_only_text", "ip", "geo_point":
return "string"
case "long":
return "int64"
Expand Down

0 comments on commit b468e6d

Please sign in to comment.