mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0530115f62
@ -45,7 +45,7 @@ import static org.elasticsearch.common.settings.ImmutableSettings.writeSettingsT
|
||||
import static org.elasticsearch.common.unit.TimeValue.readTimeValue;
|
||||
|
||||
/**
|
||||
*
|
||||
* A request to create an index template.
|
||||
*/
|
||||
public class PutIndexTemplateRequest extends MasterNodeOperationRequest {
|
||||
|
||||
@ -134,7 +134,7 @@ public class PutIndexTemplateRequest extends MasterNodeOperationRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The settings to created the index template with.
|
||||
* The settings to create the index template with.
|
||||
*/
|
||||
public PutIndexTemplateRequest settings(Settings settings) {
|
||||
this.settings = settings;
|
||||
@ -142,7 +142,7 @@ public class PutIndexTemplateRequest extends MasterNodeOperationRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The settings to created the index template with.
|
||||
* The settings to create the index template with.
|
||||
*/
|
||||
public PutIndexTemplateRequest settings(Settings.Builder settings) {
|
||||
this.settings = settings.build();
|
||||
@ -150,7 +150,7 @@ public class PutIndexTemplateRequest extends MasterNodeOperationRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The settings to crete the index template with (either json/yaml/properties format)
|
||||
* The settings to crete the index template with (either json/yaml/properties format).
|
||||
*/
|
||||
public PutIndexTemplateRequest settings(String source) {
|
||||
this.settings = ImmutableSettings.settingsBuilder().loadFromSource(source).build();
|
||||
@ -158,7 +158,7 @@ public class PutIndexTemplateRequest extends MasterNodeOperationRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The settings to crete the index template with (either json/yaml/properties format)
|
||||
* The settings to crete the index template with (either json/yaml/properties format).
|
||||
*/
|
||||
public PutIndexTemplateRequest settings(Map<String, Object> source) {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user