We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a099b commit 6a71578Copy full SHA for 6a71578
1 file changed
util/esclient.go
@@ -75,7 +75,9 @@ func GetSemanticVersion() string {
75
// HiddenIndexSettings to set plugin indices as hidden index
76
func HiddenIndexSettings() string {
77
esVersion := GetSemanticVersion()
78
- if strings.Contains(esVersion, "7.7") {
+ // Golang allows using comparision operators with strings
79
+ // test: https://play.golang.org/p/2F36GFe3L0A
80
+ if esVersion >= "7.7.0" {
81
return `"index.hidden": true,`
82
}
83
0 commit comments