Skip to content

Commit

Permalink
update elasticsearch to 8.8.2 and lucene to 9.6.0 (#472)
Browse files Browse the repository at this point in the history
* chore: update elasticsearch to 8.8.1 and lucene to 9.6.0

* refact: update to elasticsearch 8.8.2

* revert changes for LoggingIT test as test failed

---------

Co-authored-by: Israel de Simas <israel.de.simas@gmail.com>
  • Loading branch information
wrigleyDan and israelsimas committed Aug 24, 2023
1 parent b461bb3 commit d5c5b9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ private Tuple<RankerQuery, HitLogConsumer> 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() + "]")));
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/o19s/es/ltr/utils/Suppliers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5c5b9f

Please sign in to comment.