Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -129,4 +130,8 @@ public SuggestionSearchContext.SuggestionContext build(SearchExecutionContext co
return customSuggestionsContext;
}

@Override
public Version getMinimalSupportedVersion() {
return Version.V_EMPTY;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -212,4 +213,9 @@ public Explanation explain(int topLevelDocId, IndexSearcher searcher, RescoreCon
}

}

@Override
public Version getMinimalSupportedVersion() {
return Version.V_EMPTY;
}
}
2 changes: 1 addition & 1 deletion plugins/examples/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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.")
}
Expand Down