diff --git a/gradle.properties b/gradle.properties index f996a661..407291d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ ltrVersion = 1.5.8 -elasticsearchVersion = 8.7.1 -luceneVersion = 9.5.0 +elasticsearchVersion = 8.8.2 +luceneVersion = 9.6.0 ow2Version = 8.0.1 -antlrVersion = 4.5.1-1 +antlrVersion = 4.5.1-1 \ No newline at end of file diff --git a/src/main/java/com/o19s/es/ltr/logging/LoggingFetchSubPhase.java b/src/main/java/com/o19s/es/ltr/logging/LoggingFetchSubPhase.java index 50829c49..b05bb60d 100644 --- a/src/main/java/com/o19s/es/ltr/logging/LoggingFetchSubPhase.java +++ b/src/main/java/com/o19s/es/ltr/logging/LoggingFetchSubPhase.java @@ -108,9 +108,9 @@ private Tuple extractRescore(LoggingSearchExtBuilde "at index [" + logSpec.getRescoreIndex() + "]"); } QueryRescorer.QueryRescoreContext qrescore = (QueryRescorer.QueryRescoreContext) context; - return toLogger(logSpec, inspectQuery(qrescore.query()) + return toLogger(logSpec, inspectQuery(qrescore.parsedQuery().query()) .orElseThrow(() -> new IllegalArgumentException("Expected a [sltr] query but found a " + - "[" + qrescore.query().getClass().getSimpleName() + "] " + + "[" + qrescore.parsedQuery().query().getClass().getSimpleName() + "] " + "at index [" + logSpec.getRescoreIndex() + "]"))); } diff --git a/src/main/java/com/o19s/es/ltr/utils/Suppliers.java b/src/main/java/com/o19s/es/ltr/utils/Suppliers.java index 371680f9..52baf725 100644 --- a/src/main/java/com/o19s/es/ltr/utils/Suppliers.java +++ b/src/main/java/com/o19s/es/ltr/utils/Suppliers.java @@ -17,7 +17,7 @@ package com.o19s.es.ltr.utils; import com.o19s.es.ltr.ranker.LtrRanker; -import org.elasticsearch.Assertions; +import org.elasticsearch.core.Assertions; import org.elasticsearch.common.CheckedSupplier; import java.util.Objects;