Skip to content

Commit

Permalink
Fix 7.13 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
worleydl committed May 26, 2021
1 parent 71e7c6c commit 0b92fb8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ java {
// Set to false to not use elasticsearch checkstyle rules
checkstyleMain.enabled = true
checkstyleTest.enabled = true

validateElasticPom.enabled = false
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public Query doToQuery(LtrQueryContext context, FeatureSet featureSet, Map<Strin
ScoreScript.LeafFactory leafFactory = factoryFactory.newFactory(nparams, context.getSearchExecutionContext().lookup());
ScriptScoreFunction function = new ScriptScoreFunction(script, leafFactory,
context.getSearchExecutionContext().index().getName(),
context.getSearchExecutionContext().getShardId(),
context.getSearchExecutionContext().indexVersionCreated());
context.getSearchExecutionContext().getShardId()
);
return new LtrScript(function, supplier, extraLoggingSupplier, termstatSupplier, terms);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.util.concurrent.ThreadContext;
import org.elasticsearch.indices.EmptySystemIndices;
import org.elasticsearch.test.ESIntegTestCase;
import org.junit.Before;

Expand All @@ -13,7 +14,8 @@ public class PluginHealthStatusSupplierTests extends ESIntegTestCase {
@Before
public void setup() {
pluginHealthStatusSupplier =
new PluginHealthStatusSupplier(clusterService(), new IndexNameExpressionResolver(new ThreadContext(Settings.EMPTY)));
new PluginHealthStatusSupplier(clusterService(), new IndexNameExpressionResolver(new ThreadContext(Settings.EMPTY),
EmptySystemIndices.INSTANCE));
}

public void testPluginHealthStatusNoLtrStore() {
Expand Down

0 comments on commit 0b92fb8

Please sign in to comment.