From c2eff3b18f786d567b230aa31cb2e791eb4c486b Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Tue, 12 Nov 2024 15:20:37 +1300 Subject: [PATCH] Fix test Signed-off-by: Thomas Farr --- .../java/org/opensearch/client/samples/knn/KnnScriptScore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/src/main/java/org/opensearch/client/samples/knn/KnnScriptScore.java b/samples/src/main/java/org/opensearch/client/samples/knn/KnnScriptScore.java index eb0ccec60f..2277db6d13 100644 --- a/samples/src/main/java/org/opensearch/client/samples/knn/KnnScriptScore.java +++ b/samples/src/main/java/org/opensearch/client/samples/knn/KnnScriptScore.java @@ -67,7 +67,7 @@ public static void main(String[] args) { .script( sss -> sss.inline( i -> i.source("knn_score") - .lang("knn") + .lang(l -> l.custom("knn")) .params("field", JsonData.of("values")) .params("query_value", JsonData.of(searchVector)) .params("space_type", JsonData.of("cosinesimil"))