diff --git a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestionBuilder.java b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestionBuilder.java index 50c66869e4758..fa4056515a5bc 100644 --- a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestionBuilder.java +++ b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestionBuilder.java @@ -8,6 +8,7 @@ package org.elasticsearch.example.customsuggester; +import org.elasticsearch.Version; import org.elasticsearch.xcontent.ParseField; import org.elasticsearch.common.ParsingException; import org.elasticsearch.common.io.stream.StreamInput; @@ -129,4 +130,8 @@ public SuggestionSearchContext.SuggestionContext build(SearchExecutionContext co return customSuggestionsContext; } + @Override + public Version getMinimalSupportedVersion() { + return Version.V_EMPTY; + } } diff --git a/plugins/examples/rescore/src/main/java/org/elasticsearch/example/rescore/ExampleRescoreBuilder.java b/plugins/examples/rescore/src/main/java/org/elasticsearch/example/rescore/ExampleRescoreBuilder.java index 4182ada9495e3..7109f6686451b 100644 --- a/plugins/examples/rescore/src/main/java/org/elasticsearch/example/rescore/ExampleRescoreBuilder.java +++ b/plugins/examples/rescore/src/main/java/org/elasticsearch/example/rescore/ExampleRescoreBuilder.java @@ -29,6 +29,7 @@ import org.elasticsearch.search.rescore.RescoreContext; import org.elasticsearch.search.rescore.Rescorer; import org.elasticsearch.search.rescore.RescorerBuilder; +import org.elasticsearch.Version; import java.io.IOException; import java.util.Arrays; @@ -212,4 +213,9 @@ public Explanation explain(int topLevelDocId, IndexSearcher searcher, RescoreCon } } + + @Override + public Version getMinimalSupportedVersion() { + return Version.V_EMPTY; + } } diff --git a/plugins/examples/settings.gradle b/plugins/examples/settings.gradle index 9f47e69181dda..e9762cd196f75 100644 --- a/plugins/examples/settings.gradle +++ b/plugins/examples/settings.gradle @@ -62,7 +62,7 @@ static def getDefaultDistroProjectName() { } else if (os.startsWith("Linux") || os.startsWith("LINUX")) { return isArm ? 'linux-aarch64-tar' : 'linux-tar' } else if (os.startsWith("Mac")) { - return isArm ? 'darwing-aarch64-tar' : 'darwin-tar' + return isArm ? 'darwin-aarch64-tar' : 'darwin-tar' } else { throw new GradleException("Unable to determine system platform type.") }