Skip to content

Commit 0ad10b5

Browse files
authored
Generator: exclude deprecated knn_search endpoint for v9 (elastic#986)
1 parent b5adae5 commit 0ad10b5

File tree

1 file changed

+3
-1
lines changed
  • internal/build/cmd/generate/commands/gensource

1 file changed

+3
-1
lines changed

internal/build/cmd/generate/commands/gensource/command.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ func (cmd *Command) Execute() (err error) {
145145

146146
for _, fpath := range inputFiles {
147147
fname := filepath.Base(fpath)
148-
if fname == "_common.json" || strings.HasPrefix(fname, "_internal") {
148+
if fname == "_common.json" ||
149+
strings.HasPrefix(fname, "_internal") ||
150+
fname == "knn_search.json" {
149151
continue
150152
}
151153

0 commit comments

Comments
 (0)