Skip to content

Commit 0eef064

Browse files
committed
function moved out of snapshot functions, doc update
1 parent 8054fe1 commit 0eef064

File tree

2 files changed

+4
-3
lines changed
  • docs/reference/query-languages/esql/kibana/definition/functions
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function

2 files changed

+4
-3
lines changed

docs/reference/query-languages/esql/kibana/definition/functions/score.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ private static FunctionDefinition[][] functions() {
471471
def(Match.class, tri(Match::new), "match"),
472472
def(MultiMatch.class, MultiMatch::new, "multi_match"),
473473
def(QueryString.class, bi(QueryString::new), "qstr"),
474-
def(MatchPhrase.class, tri(MatchPhrase::new), "match_phrase") } };
474+
def(MatchPhrase.class, tri(MatchPhrase::new), "match_phrase"),
475+
def(Score.class, uni(Score::new), "score"),
476+
} };
475477

476478
}
477479

@@ -492,7 +494,6 @@ private static FunctionDefinition[][] snapshotFunctions() {
492494
def(AvgOverTime.class, uni(AvgOverTime::new), "avg_over_time"),
493495
def(LastOverTime.class, uni(LastOverTime::new), "last_over_time"),
494496
def(FirstOverTime.class, uni(FirstOverTime::new), "first_over_time"),
495-
def(Score.class, uni(Score::new), Score.NAME),
496497
def(Term.class, bi(Term::new), "term"),
497498
def(Knn.class, quad(Knn::new), "knn"),
498499
def(StGeohash.class, StGeohash::new, "st_geohash"),

0 commit comments

Comments
 (0)