From 0ad467e5615522954205e29cda9cc4d2f4e753fa Mon Sep 17 00:00:00 2001 From: Alexander Koval Date: Mon, 15 Nov 2021 13:23:52 +0200 Subject: [PATCH] Fixed compiling samples --- samples/src/main/kotlin/samples/code/SearchQuery.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/src/main/kotlin/samples/code/SearchQuery.kt b/samples/src/main/kotlin/samples/code/SearchQuery.kt index b3a72761d7..af6dfa4762 100644 --- a/samples/src/main/kotlin/samples/code/SearchQuery.kt +++ b/samples/src/main/kotlin/samples/code/SearchQuery.kt @@ -42,7 +42,7 @@ fun queryNode() { UserDoc.rank, missing = 1.0F, factor = 2.0, - modifier = "sqrt", + modifier = FunctionScore.FieldValueFactor.Modifier.LN1P ) ), scoreMode = FunctionScore.ScoreMode.SUM,