Skip to content

Commit

Permalink
Add support for 7.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dansimpson committed May 24, 2021
1 parent 74f1525 commit cf2b7cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
group = io.bonsai
publishedPluginVersion=1.0.2
pluginVersion=1.0.2
esVersion=7.7.1
esVersion=7.10.2
pluginName=stored-synonyms
pluginClassname=io.bonsai.plugins.synonyms.StoredSynonymsPlugin
pluginDescription=Less painful synonym management
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.elasticsearch.plugins.ActionPlugin;
import org.elasticsearch.plugins.AnalysisPlugin;
import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.repositories.RepositoriesService;
import org.elasticsearch.rest.RestController;
import org.elasticsearch.rest.RestHandler;
import org.elasticsearch.script.ScriptService;
Expand All @@ -64,7 +65,8 @@ public Collection<Object> createComponents(
Environment environment,
NodeEnvironment nodeEnvironment,
NamedWriteableRegistry namedWriteableRegistry,
IndexNameExpressionResolver indexNameExpressionResolver) {
IndexNameExpressionResolver indexNameExpressionResolver,
Supplier<RepositoriesService> repositoriesServiceSupplier) {

// Set up the synonym service
service = new StoredSynonymsService(client, clusterService, ".stored_synonyms");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.elasticsearch.cluster.ClusterChangedEvent;
import org.elasticsearch.cluster.ClusterStateListener;
import org.elasticsearch.cluster.health.ClusterHealthStatus;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.metadata.IndexMetadata;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.component.LifecycleListener;
Expand Down Expand Up @@ -282,8 +282,8 @@ private void createIndex(ActionListener<CreateIndexResponse> listener) {

Settings indexSettings =
Settings.builder()
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 1)
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1)
.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 1)
.build();

client
Expand Down

0 comments on commit cf2b7cd

Please sign in to comment.