Skip to content

Commit f775790

Browse files
authored
fix: es version check (#124)
* fix: es version check * fix: version check condition
1 parent 31dd5cf commit f775790

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/reindexer/dao.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"net/url"
99
"regexp"
1010
"strconv"
11-
"strings"
1211
"time"
1312

1413
log "github.com/sirupsen/logrus"
@@ -363,7 +362,7 @@ func getAliasedIndices(ctx context.Context) ([]AliasedIndices, error) {
363362
v := url.Values{}
364363
v.Set("format", "json")
365364

366-
if strings.Contains(util.GetSemanticVersion(), "7.7") {
365+
if util.GetSemanticVersion() >= "7.7.0" {
367366
v.Add("expand_wildcards", "all")
368367
}
369368

0 commit comments

Comments
 (0)