elasticstack.ElasticsearchIndex
Explore with Pulumi AI
Creates or updates an index. This resource can define settings, mappings and aliases. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const myIndex = new elasticstack.ElasticsearchIndex("myIndex", {
aliases: [
{
name: "my_alias_1",
},
{
name: "my_alias_2",
filter: JSON.stringify({
term: {
"user.id": "developer",
},
}),
},
],
mappings: JSON.stringify({
properties: {
field1: {
type: "keyword",
},
field2: {
type: "text",
},
field3: {
properties: {
inner_field1: {
type: "text",
index: false,
},
inner_field2: {
type: "integer",
index: false,
},
},
},
},
}),
numberOfShards: 1,
numberOfReplicas: 2,
searchIdleAfter: "20s",
});
import pulumi
import json
import pulumi_elasticstack as elasticstack
my_index = elasticstack.ElasticsearchIndex("myIndex",
aliases=[
{
"name": "my_alias_1",
},
{
"name": "my_alias_2",
"filter": json.dumps({
"term": {
"user.id": "developer",
},
}),
},
],
mappings=json.dumps({
"properties": {
"field1": {
"type": "keyword",
},
"field2": {
"type": "text",
},
"field3": {
"properties": {
"inner_field1": {
"type": "text",
"index": False,
},
"inner_field2": {
"type": "integer",
"index": False,
},
},
},
},
}),
number_of_shards=1,
number_of_replicas=2,
search_idle_after="20s")
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"term": map[string]interface{}{
"user.id": "developer",
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal(map[string]interface{}{
"properties": map[string]interface{}{
"field1": map[string]interface{}{
"type": "keyword",
},
"field2": map[string]interface{}{
"type": "text",
},
"field3": map[string]interface{}{
"properties": map[string]interface{}{
"inner_field1": map[string]interface{}{
"type": "text",
"index": false,
},
"inner_field2": map[string]interface{}{
"type": "integer",
"index": false,
},
},
},
},
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
_, err = elasticstack.NewElasticsearchIndex(ctx, "myIndex", &elasticstack.ElasticsearchIndexArgs{
Aliases: elasticstack.ElasticsearchIndexAliasArray{
&elasticstack.ElasticsearchIndexAliasArgs{
Name: pulumi.String("my_alias_1"),
},
&elasticstack.ElasticsearchIndexAliasArgs{
Name: pulumi.String("my_alias_2"),
Filter: pulumi.String(json0),
},
},
Mappings: pulumi.String(json1),
NumberOfShards: pulumi.Float64(1),
NumberOfReplicas: pulumi.Float64(2),
SearchIdleAfter: pulumi.String("20s"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var myIndex = new Elasticstack.ElasticsearchIndex("myIndex", new()
{
Aliases = new[]
{
new Elasticstack.Inputs.ElasticsearchIndexAliasArgs
{
Name = "my_alias_1",
},
new Elasticstack.Inputs.ElasticsearchIndexAliasArgs
{
Name = "my_alias_2",
Filter = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["term"] = new Dictionary<string, object?>
{
["user.id"] = "developer",
},
}),
},
},
Mappings = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["properties"] = new Dictionary<string, object?>
{
["field1"] = new Dictionary<string, object?>
{
["type"] = "keyword",
},
["field2"] = new Dictionary<string, object?>
{
["type"] = "text",
},
["field3"] = new Dictionary<string, object?>
{
["properties"] = new Dictionary<string, object?>
{
["inner_field1"] = new Dictionary<string, object?>
{
["type"] = "text",
["index"] = false,
},
["inner_field2"] = new Dictionary<string, object?>
{
["type"] = "integer",
["index"] = false,
},
},
},
},
}),
NumberOfShards = 1,
NumberOfReplicas = 2,
SearchIdleAfter = "20s",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticsearchIndex;
import com.pulumi.elasticstack.ElasticsearchIndexArgs;
import com.pulumi.elasticstack.inputs.ElasticsearchIndexAliasArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myIndex = new ElasticsearchIndex("myIndex", ElasticsearchIndexArgs.builder()
.aliases(
ElasticsearchIndexAliasArgs.builder()
.name("my_alias_1")
.build(),
ElasticsearchIndexAliasArgs.builder()
.name("my_alias_2")
.filter(serializeJson(
jsonObject(
jsonProperty("term", jsonObject(
jsonProperty("user.id", "developer")
))
)))
.build())
.mappings(serializeJson(
jsonObject(
jsonProperty("properties", jsonObject(
jsonProperty("field1", jsonObject(
jsonProperty("type", "keyword")
)),
jsonProperty("field2", jsonObject(
jsonProperty("type", "text")
)),
jsonProperty("field3", jsonObject(
jsonProperty("properties", jsonObject(
jsonProperty("inner_field1", jsonObject(
jsonProperty("type", "text"),
jsonProperty("index", false)
)),
jsonProperty("inner_field2", jsonObject(
jsonProperty("type", "integer"),
jsonProperty("index", false)
))
))
))
))
)))
.numberOfShards(1)
.numberOfReplicas(2)
.searchIdleAfter("20s")
.build());
}
}
resources:
myIndex:
type: elasticstack:ElasticsearchIndex
properties:
aliases:
- name: my_alias_1
- name: my_alias_2
filter:
fn::toJSON:
term:
user.id: developer
mappings:
fn::toJSON:
properties:
field1:
type: keyword
field2:
type: text
field3:
properties:
inner_field1:
type: text
index: false
inner_field2:
type: integer
index: false
numberOfShards: 1
numberOfReplicas: 2
searchIdleAfter: 20s
Create ElasticsearchIndex Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchIndex(name: string, args?: ElasticsearchIndexArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchIndex(resource_name: str,
args: Optional[ElasticsearchIndexArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchIndex(resource_name: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[Sequence[ElasticsearchIndexAliasArgs]] = None,
analysis_analyzer: Optional[str] = None,
analysis_char_filter: Optional[str] = None,
analysis_filter: Optional[str] = None,
analysis_normalizer: Optional[str] = None,
analysis_tokenizer: Optional[str] = None,
analyze_max_token_count: Optional[float] = None,
auto_expand_replicas: Optional[str] = None,
blocks_metadata: Optional[bool] = None,
blocks_read: Optional[bool] = None,
blocks_read_only: Optional[bool] = None,
blocks_read_only_allow_delete: Optional[bool] = None,
blocks_write: Optional[bool] = None,
codec: Optional[str] = None,
default_pipeline: Optional[str] = None,
deletion_protection: Optional[bool] = None,
elasticsearch_connections: Optional[Sequence[ElasticsearchIndexElasticsearchConnectionArgs]] = None,
final_pipeline: Optional[str] = None,
gc_deletes: Optional[str] = None,
highlight_max_analyzed_offset: Optional[float] = None,
indexing_slowlog_level: Optional[str] = None,
indexing_slowlog_source: Optional[str] = None,
indexing_slowlog_threshold_index_debug: Optional[str] = None,
indexing_slowlog_threshold_index_info: Optional[str] = None,
indexing_slowlog_threshold_index_trace: Optional[str] = None,
indexing_slowlog_threshold_index_warn: Optional[str] = None,
load_fixed_bitset_filters_eagerly: Optional[bool] = None,
mapping_coerce: Optional[bool] = None,
mappings: Optional[str] = None,
master_timeout: Optional[str] = None,
max_docvalue_fields_search: Optional[float] = None,
max_inner_result_window: Optional[float] = None,
max_ngram_diff: Optional[float] = None,
max_refresh_listeners: Optional[float] = None,
max_regex_length: Optional[float] = None,
max_rescore_window: Optional[float] = None,
max_result_window: Optional[float] = None,
max_script_fields: Optional[float] = None,
max_shingle_diff: Optional[float] = None,
max_terms_count: Optional[float] = None,
name: Optional[str] = None,
number_of_replicas: Optional[float] = None,
number_of_routing_shards: Optional[float] = None,
number_of_shards: Optional[float] = None,
query_default_fields: Optional[Sequence[str]] = None,
refresh_interval: Optional[str] = None,
routing_allocation_enable: Optional[str] = None,
routing_partition_size: Optional[float] = None,
routing_rebalance_enable: Optional[str] = None,
search_idle_after: Optional[str] = None,
search_slowlog_level: Optional[str] = None,
search_slowlog_threshold_fetch_debug: Optional[str] = None,
search_slowlog_threshold_fetch_info: Optional[str] = None,
search_slowlog_threshold_fetch_trace: Optional[str] = None,
search_slowlog_threshold_fetch_warn: Optional[str] = None,
search_slowlog_threshold_query_debug: Optional[str] = None,
search_slowlog_threshold_query_info: Optional[str] = None,
search_slowlog_threshold_query_trace: Optional[str] = None,
search_slowlog_threshold_query_warn: Optional[str] = None,
settings: Optional[Sequence[ElasticsearchIndexSettingArgs]] = None,
shard_check_on_startup: Optional[str] = None,
sort_fields: Optional[Sequence[str]] = None,
sort_orders: Optional[Sequence[str]] = None,
timeout: Optional[str] = None,
unassigned_node_left_delayed_timeout: Optional[str] = None,
wait_for_active_shards: Optional[str] = None)
func NewElasticsearchIndex(ctx *Context, name string, args *ElasticsearchIndexArgs, opts ...ResourceOption) (*ElasticsearchIndex, error)
public ElasticsearchIndex(string name, ElasticsearchIndexArgs? args = null, CustomResourceOptions? opts = null)
public ElasticsearchIndex(String name, ElasticsearchIndexArgs args)
public ElasticsearchIndex(String name, ElasticsearchIndexArgs args, CustomResourceOptions options)
type: elasticstack:ElasticsearchIndex
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ElasticsearchIndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElasticsearchIndexArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElasticsearchIndexArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchIndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchIndexArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var elasticsearchIndexResource = new Elasticstack.ElasticsearchIndex("elasticsearchIndexResource", new()
{
Aliases = new[]
{
new Elasticstack.Inputs.ElasticsearchIndexAliasArgs
{
Name = "string",
Filter = "string",
IndexRouting = "string",
IsHidden = false,
IsWriteIndex = false,
Routing = "string",
SearchRouting = "string",
},
},
AnalysisAnalyzer = "string",
AnalysisCharFilter = "string",
AnalysisFilter = "string",
AnalysisNormalizer = "string",
AnalysisTokenizer = "string",
AnalyzeMaxTokenCount = 0,
AutoExpandReplicas = "string",
BlocksMetadata = false,
BlocksRead = false,
BlocksReadOnly = false,
BlocksReadOnlyAllowDelete = false,
BlocksWrite = false,
Codec = "string",
DefaultPipeline = "string",
DeletionProtection = false,
FinalPipeline = "string",
GcDeletes = "string",
HighlightMaxAnalyzedOffset = 0,
IndexingSlowlogLevel = "string",
IndexingSlowlogSource = "string",
IndexingSlowlogThresholdIndexDebug = "string",
IndexingSlowlogThresholdIndexInfo = "string",
IndexingSlowlogThresholdIndexTrace = "string",
IndexingSlowlogThresholdIndexWarn = "string",
LoadFixedBitsetFiltersEagerly = false,
MappingCoerce = false,
Mappings = "string",
MasterTimeout = "string",
MaxDocvalueFieldsSearch = 0,
MaxInnerResultWindow = 0,
MaxNgramDiff = 0,
MaxRefreshListeners = 0,
MaxRegexLength = 0,
MaxRescoreWindow = 0,
MaxResultWindow = 0,
MaxScriptFields = 0,
MaxShingleDiff = 0,
MaxTermsCount = 0,
Name = "string",
NumberOfReplicas = 0,
NumberOfRoutingShards = 0,
NumberOfShards = 0,
QueryDefaultFields = new[]
{
"string",
},
RefreshInterval = "string",
RoutingAllocationEnable = "string",
RoutingPartitionSize = 0,
RoutingRebalanceEnable = "string",
SearchIdleAfter = "string",
SearchSlowlogLevel = "string",
SearchSlowlogThresholdFetchDebug = "string",
SearchSlowlogThresholdFetchInfo = "string",
SearchSlowlogThresholdFetchTrace = "string",
SearchSlowlogThresholdFetchWarn = "string",
SearchSlowlogThresholdQueryDebug = "string",
SearchSlowlogThresholdQueryInfo = "string",
SearchSlowlogThresholdQueryTrace = "string",
SearchSlowlogThresholdQueryWarn = "string",
ShardCheckOnStartup = "string",
SortFields = new[]
{
"string",
},
SortOrders = new[]
{
"string",
},
Timeout = "string",
UnassignedNodeLeftDelayedTimeout = "string",
WaitForActiveShards = "string",
});
example, err := elasticstack.NewElasticsearchIndex(ctx, "elasticsearchIndexResource", &elasticstack.ElasticsearchIndexArgs{
Aliases: elasticstack.ElasticsearchIndexAliasArray{
&elasticstack.ElasticsearchIndexAliasArgs{
Name: pulumi.String("string"),
Filter: pulumi.String("string"),
IndexRouting: pulumi.String("string"),
IsHidden: pulumi.Bool(false),
IsWriteIndex: pulumi.Bool(false),
Routing: pulumi.String("string"),
SearchRouting: pulumi.String("string"),
},
},
AnalysisAnalyzer: pulumi.String("string"),
AnalysisCharFilter: pulumi.String("string"),
AnalysisFilter: pulumi.String("string"),
AnalysisNormalizer: pulumi.String("string"),
AnalysisTokenizer: pulumi.String("string"),
AnalyzeMaxTokenCount: pulumi.Float64(0),
AutoExpandReplicas: pulumi.String("string"),
BlocksMetadata: pulumi.Bool(false),
BlocksRead: pulumi.Bool(false),
BlocksReadOnly: pulumi.Bool(false),
BlocksReadOnlyAllowDelete: pulumi.Bool(false),
BlocksWrite: pulumi.Bool(false),
Codec: pulumi.String("string"),
DefaultPipeline: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
FinalPipeline: pulumi.String("string"),
GcDeletes: pulumi.String("string"),
HighlightMaxAnalyzedOffset: pulumi.Float64(0),
IndexingSlowlogLevel: pulumi.String("string"),
IndexingSlowlogSource: pulumi.String("string"),
IndexingSlowlogThresholdIndexDebug: pulumi.String("string"),
IndexingSlowlogThresholdIndexInfo: pulumi.String("string"),
IndexingSlowlogThresholdIndexTrace: pulumi.String("string"),
IndexingSlowlogThresholdIndexWarn: pulumi.String("string"),
LoadFixedBitsetFiltersEagerly: pulumi.Bool(false),
MappingCoerce: pulumi.Bool(false),
Mappings: pulumi.String("string"),
MasterTimeout: pulumi.String("string"),
MaxDocvalueFieldsSearch: pulumi.Float64(0),
MaxInnerResultWindow: pulumi.Float64(0),
MaxNgramDiff: pulumi.Float64(0),
MaxRefreshListeners: pulumi.Float64(0),
MaxRegexLength: pulumi.Float64(0),
MaxRescoreWindow: pulumi.Float64(0),
MaxResultWindow: pulumi.Float64(0),
MaxScriptFields: pulumi.Float64(0),
MaxShingleDiff: pulumi.Float64(0),
MaxTermsCount: pulumi.Float64(0),
Name: pulumi.String("string"),
NumberOfReplicas: pulumi.Float64(0),
NumberOfRoutingShards: pulumi.Float64(0),
NumberOfShards: pulumi.Float64(0),
QueryDefaultFields: pulumi.StringArray{
pulumi.String("string"),
},
RefreshInterval: pulumi.String("string"),
RoutingAllocationEnable: pulumi.String("string"),
RoutingPartitionSize: pulumi.Float64(0),
RoutingRebalanceEnable: pulumi.String("string"),
SearchIdleAfter: pulumi.String("string"),
SearchSlowlogLevel: pulumi.String("string"),
SearchSlowlogThresholdFetchDebug: pulumi.String("string"),
SearchSlowlogThresholdFetchInfo: pulumi.String("string"),
SearchSlowlogThresholdFetchTrace: pulumi.String("string"),
SearchSlowlogThresholdFetchWarn: pulumi.String("string"),
SearchSlowlogThresholdQueryDebug: pulumi.String("string"),
SearchSlowlogThresholdQueryInfo: pulumi.String("string"),
SearchSlowlogThresholdQueryTrace: pulumi.String("string"),
SearchSlowlogThresholdQueryWarn: pulumi.String("string"),
ShardCheckOnStartup: pulumi.String("string"),
SortFields: pulumi.StringArray{
pulumi.String("string"),
},
SortOrders: pulumi.StringArray{
pulumi.String("string"),
},
Timeout: pulumi.String("string"),
UnassignedNodeLeftDelayedTimeout: pulumi.String("string"),
WaitForActiveShards: pulumi.String("string"),
})
var elasticsearchIndexResource = new ElasticsearchIndex("elasticsearchIndexResource", ElasticsearchIndexArgs.builder()
.aliases(ElasticsearchIndexAliasArgs.builder()
.name("string")
.filter("string")
.indexRouting("string")
.isHidden(false)
.isWriteIndex(false)
.routing("string")
.searchRouting("string")
.build())
.analysisAnalyzer("string")
.analysisCharFilter("string")
.analysisFilter("string")
.analysisNormalizer("string")
.analysisTokenizer("string")
.analyzeMaxTokenCount(0)
.autoExpandReplicas("string")
.blocksMetadata(false)
.blocksRead(false)
.blocksReadOnly(false)
.blocksReadOnlyAllowDelete(false)
.blocksWrite(false)
.codec("string")
.defaultPipeline("string")
.deletionProtection(false)
.finalPipeline("string")
.gcDeletes("string")
.highlightMaxAnalyzedOffset(0)
.indexingSlowlogLevel("string")
.indexingSlowlogSource("string")
.indexingSlowlogThresholdIndexDebug("string")
.indexingSlowlogThresholdIndexInfo("string")
.indexingSlowlogThresholdIndexTrace("string")
.indexingSlowlogThresholdIndexWarn("string")
.loadFixedBitsetFiltersEagerly(false)
.mappingCoerce(false)
.mappings("string")
.masterTimeout("string")
.maxDocvalueFieldsSearch(0)
.maxInnerResultWindow(0)
.maxNgramDiff(0)
.maxRefreshListeners(0)
.maxRegexLength(0)
.maxRescoreWindow(0)
.maxResultWindow(0)
.maxScriptFields(0)
.maxShingleDiff(0)
.maxTermsCount(0)
.name("string")
.numberOfReplicas(0)
.numberOfRoutingShards(0)
.numberOfShards(0)
.queryDefaultFields("string")
.refreshInterval("string")
.routingAllocationEnable("string")
.routingPartitionSize(0)
.routingRebalanceEnable("string")
.searchIdleAfter("string")
.searchSlowlogLevel("string")
.searchSlowlogThresholdFetchDebug("string")
.searchSlowlogThresholdFetchInfo("string")
.searchSlowlogThresholdFetchTrace("string")
.searchSlowlogThresholdFetchWarn("string")
.searchSlowlogThresholdQueryDebug("string")
.searchSlowlogThresholdQueryInfo("string")
.searchSlowlogThresholdQueryTrace("string")
.searchSlowlogThresholdQueryWarn("string")
.shardCheckOnStartup("string")
.sortFields("string")
.sortOrders("string")
.timeout("string")
.unassignedNodeLeftDelayedTimeout("string")
.waitForActiveShards("string")
.build());
elasticsearch_index_resource = elasticstack.ElasticsearchIndex("elasticsearchIndexResource",
aliases=[{
"name": "string",
"filter": "string",
"index_routing": "string",
"is_hidden": False,
"is_write_index": False,
"routing": "string",
"search_routing": "string",
}],
analysis_analyzer="string",
analysis_char_filter="string",
analysis_filter="string",
analysis_normalizer="string",
analysis_tokenizer="string",
analyze_max_token_count=0,
auto_expand_replicas="string",
blocks_metadata=False,
blocks_read=False,
blocks_read_only=False,
blocks_read_only_allow_delete=False,
blocks_write=False,
codec="string",
default_pipeline="string",
deletion_protection=False,
final_pipeline="string",
gc_deletes="string",
highlight_max_analyzed_offset=0,
indexing_slowlog_level="string",
indexing_slowlog_source="string",
indexing_slowlog_threshold_index_debug="string",
indexing_slowlog_threshold_index_info="string",
indexing_slowlog_threshold_index_trace="string",
indexing_slowlog_threshold_index_warn="string",
load_fixed_bitset_filters_eagerly=False,
mapping_coerce=False,
mappings="string",
master_timeout="string",
max_docvalue_fields_search=0,
max_inner_result_window=0,
max_ngram_diff=0,
max_refresh_listeners=0,
max_regex_length=0,
max_rescore_window=0,
max_result_window=0,
max_script_fields=0,
max_shingle_diff=0,
max_terms_count=0,
name="string",
number_of_replicas=0,
number_of_routing_shards=0,
number_of_shards=0,
query_default_fields=["string"],
refresh_interval="string",
routing_allocation_enable="string",
routing_partition_size=0,
routing_rebalance_enable="string",
search_idle_after="string",
search_slowlog_level="string",
search_slowlog_threshold_fetch_debug="string",
search_slowlog_threshold_fetch_info="string",
search_slowlog_threshold_fetch_trace="string",
search_slowlog_threshold_fetch_warn="string",
search_slowlog_threshold_query_debug="string",
search_slowlog_threshold_query_info="string",
search_slowlog_threshold_query_trace="string",
search_slowlog_threshold_query_warn="string",
shard_check_on_startup="string",
sort_fields=["string"],
sort_orders=["string"],
timeout="string",
unassigned_node_left_delayed_timeout="string",
wait_for_active_shards="string")
const elasticsearchIndexResource = new elasticstack.ElasticsearchIndex("elasticsearchIndexResource", {
aliases: [{
name: "string",
filter: "string",
indexRouting: "string",
isHidden: false,
isWriteIndex: false,
routing: "string",
searchRouting: "string",
}],
analysisAnalyzer: "string",
analysisCharFilter: "string",
analysisFilter: "string",
analysisNormalizer: "string",
analysisTokenizer: "string",
analyzeMaxTokenCount: 0,
autoExpandReplicas: "string",
blocksMetadata: false,
blocksRead: false,
blocksReadOnly: false,
blocksReadOnlyAllowDelete: false,
blocksWrite: false,
codec: "string",
defaultPipeline: "string",
deletionProtection: false,
finalPipeline: "string",
gcDeletes: "string",
highlightMaxAnalyzedOffset: 0,
indexingSlowlogLevel: "string",
indexingSlowlogSource: "string",
indexingSlowlogThresholdIndexDebug: "string",
indexingSlowlogThresholdIndexInfo: "string",
indexingSlowlogThresholdIndexTrace: "string",
indexingSlowlogThresholdIndexWarn: "string",
loadFixedBitsetFiltersEagerly: false,
mappingCoerce: false,
mappings: "string",
masterTimeout: "string",
maxDocvalueFieldsSearch: 0,
maxInnerResultWindow: 0,
maxNgramDiff: 0,
maxRefreshListeners: 0,
maxRegexLength: 0,
maxRescoreWindow: 0,
maxResultWindow: 0,
maxScriptFields: 0,
maxShingleDiff: 0,
maxTermsCount: 0,
name: "string",
numberOfReplicas: 0,
numberOfRoutingShards: 0,
numberOfShards: 0,
queryDefaultFields: ["string"],
refreshInterval: "string",
routingAllocationEnable: "string",
routingPartitionSize: 0,
routingRebalanceEnable: "string",
searchIdleAfter: "string",
searchSlowlogLevel: "string",
searchSlowlogThresholdFetchDebug: "string",
searchSlowlogThresholdFetchInfo: "string",
searchSlowlogThresholdFetchTrace: "string",
searchSlowlogThresholdFetchWarn: "string",
searchSlowlogThresholdQueryDebug: "string",
searchSlowlogThresholdQueryInfo: "string",
searchSlowlogThresholdQueryTrace: "string",
searchSlowlogThresholdQueryWarn: "string",
shardCheckOnStartup: "string",
sortFields: ["string"],
sortOrders: ["string"],
timeout: "string",
unassignedNodeLeftDelayedTimeout: "string",
waitForActiveShards: "string",
});
type: elasticstack:ElasticsearchIndex
properties:
aliases:
- filter: string
indexRouting: string
isHidden: false
isWriteIndex: false
name: string
routing: string
searchRouting: string
analysisAnalyzer: string
analysisCharFilter: string
analysisFilter: string
analysisNormalizer: string
analysisTokenizer: string
analyzeMaxTokenCount: 0
autoExpandReplicas: string
blocksMetadata: false
blocksRead: false
blocksReadOnly: false
blocksReadOnlyAllowDelete: false
blocksWrite: false
codec: string
defaultPipeline: string
deletionProtection: false
finalPipeline: string
gcDeletes: string
highlightMaxAnalyzedOffset: 0
indexingSlowlogLevel: string
indexingSlowlogSource: string
indexingSlowlogThresholdIndexDebug: string
indexingSlowlogThresholdIndexInfo: string
indexingSlowlogThresholdIndexTrace: string
indexingSlowlogThresholdIndexWarn: string
loadFixedBitsetFiltersEagerly: false
mappingCoerce: false
mappings: string
masterTimeout: string
maxDocvalueFieldsSearch: 0
maxInnerResultWindow: 0
maxNgramDiff: 0
maxRefreshListeners: 0
maxRegexLength: 0
maxRescoreWindow: 0
maxResultWindow: 0
maxScriptFields: 0
maxShingleDiff: 0
maxTermsCount: 0
name: string
numberOfReplicas: 0
numberOfRoutingShards: 0
numberOfShards: 0
queryDefaultFields:
- string
refreshInterval: string
routingAllocationEnable: string
routingPartitionSize: 0
routingRebalanceEnable: string
searchIdleAfter: string
searchSlowlogLevel: string
searchSlowlogThresholdFetchDebug: string
searchSlowlogThresholdFetchInfo: string
searchSlowlogThresholdFetchTrace: string
searchSlowlogThresholdFetchWarn: string
searchSlowlogThresholdQueryDebug: string
searchSlowlogThresholdQueryInfo: string
searchSlowlogThresholdQueryTrace: string
searchSlowlogThresholdQueryWarn: string
shardCheckOnStartup: string
sortFields:
- string
sortOrders:
- string
timeout: string
unassignedNodeLeftDelayedTimeout: string
waitForActiveShards: string
ElasticsearchIndex Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ElasticsearchIndex resource accepts the following input properties:
- Aliases
List<Elasticsearch
Index Alias> - Aliases for the index.
- Analysis
Analyzer string - A JSON string describing the analyzers applied to the index.
- Analysis
Char stringFilter - A JSON string describing the char_filters applied to the index.
- Analysis
Filter string - A JSON string describing the filters applied to the index.
- Analysis
Normalizer string - A JSON string describing the normalizers applied to the index.
- Analysis
Tokenizer string - A JSON string describing the tokenizers applied to the index.
- Analyze
Max doubleToken Count - The maximum number of tokens that can be produced using _analyze API.
- Auto
Expand stringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- Blocks
Metadata bool - Set to
true
to disable index metadata reads and writes. - Blocks
Read bool - Set to
true
to disable read operations against the index. - Blocks
Read boolOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - Blocks
Read boolOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - Blocks
Write bool - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - Codec string
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - Default
Pipeline string - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- Deletion
Protection bool - Elasticsearch
Connections List<ElasticsearchIndex Elasticsearch Connection> - Elasticsearch connection configuration block.
- Final
Pipeline string - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max doubleAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- Indexing
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Indexing
Slowlog stringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - Indexing
Slowlog stringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- Indexing
Slowlog stringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- Indexing
Slowlog stringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- Indexing
Slowlog stringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- Load
Fixed boolBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- Mapping
Coerce bool - Set index level coercion setting that is applied to all mapping types.
- Mappings string
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- Master
Timeout string - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - Max
Docvalue doubleFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - Max
Inner doubleResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - Max
Ngram doubleDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- Max
Refresh doubleListeners - Maximum number of refresh listeners available on each shard of the index.
- Max
Regex doubleLength - The maximum length of regex that can be used in Regexp Query.
- Max
Rescore doubleWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - Max
Result doubleWindow - The maximum value of
from + size
for searches to this index. - Max
Script doubleFields - The maximum number of
script_fields
that are allowed in a query. - Max
Shingle doubleDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- Max
Terms doubleCount - The maximum number of terms that can be used in Terms Query.
- Name string
- Name of the index you wish to create.
- Number
Of doubleReplicas - Number of shard replicas.
- Number
Of doubleRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- Number
Of doubleShards - Number of shards for the index. This can be set only on creation.
- Query
Default List<string>Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- Refresh
Interval string - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition doubleSize - The number of shards a custom routing value can go to. This can be set only on creation.
- Routing
Rebalance stringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - Search
Idle stringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- Search
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Search
Slowlog stringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- Search
Slowlog stringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- Settings
List<Elasticsearch
Index Setting> - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- string
- Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - Sort
Fields List<string> - The field to sort shards in this index by.
- Sort
Orders List<string> - The direction to sort shards in. Accepts
asc
,desc
. - Timeout string
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - Unassigned
Node stringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- Wait
For stringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- Aliases
[]Elasticsearch
Index Alias Args - Aliases for the index.
- Analysis
Analyzer string - A JSON string describing the analyzers applied to the index.
- Analysis
Char stringFilter - A JSON string describing the char_filters applied to the index.
- Analysis
Filter string - A JSON string describing the filters applied to the index.
- Analysis
Normalizer string - A JSON string describing the normalizers applied to the index.
- Analysis
Tokenizer string - A JSON string describing the tokenizers applied to the index.
- Analyze
Max float64Token Count - The maximum number of tokens that can be produced using _analyze API.
- Auto
Expand stringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- Blocks
Metadata bool - Set to
true
to disable index metadata reads and writes. - Blocks
Read bool - Set to
true
to disable read operations against the index. - Blocks
Read boolOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - Blocks
Read boolOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - Blocks
Write bool - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - Codec string
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - Default
Pipeline string - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- Deletion
Protection bool - Elasticsearch
Connections []ElasticsearchIndex Elasticsearch Connection Args - Elasticsearch connection configuration block.
- Final
Pipeline string - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max float64Analyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- Indexing
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Indexing
Slowlog stringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - Indexing
Slowlog stringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- Indexing
Slowlog stringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- Indexing
Slowlog stringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- Indexing
Slowlog stringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- Load
Fixed boolBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- Mapping
Coerce bool - Set index level coercion setting that is applied to all mapping types.
- Mappings string
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- Master
Timeout string - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - Max
Docvalue float64Fields Search - The maximum number of
docvalue_fields
that are allowed in a query. - Max
Inner float64Result Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - Max
Ngram float64Diff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- Max
Refresh float64Listeners - Maximum number of refresh listeners available on each shard of the index.
- Max
Regex float64Length - The maximum length of regex that can be used in Regexp Query.
- Max
Rescore float64Window - The maximum value of
window_size
forrescore
requests in searches of this index. - Max
Result float64Window - The maximum value of
from + size
for searches to this index. - Max
Script float64Fields - The maximum number of
script_fields
that are allowed in a query. - Max
Shingle float64Diff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- Max
Terms float64Count - The maximum number of terms that can be used in Terms Query.
- Name string
- Name of the index you wish to create.
- Number
Of float64Replicas - Number of shard replicas.
- Number
Of float64Routing Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- Number
Of float64Shards - Number of shards for the index. This can be set only on creation.
- Query
Default []stringFields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- Refresh
Interval string - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition float64Size - The number of shards a custom routing value can go to. This can be set only on creation.
- Routing
Rebalance stringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - Search
Idle stringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- Search
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Search
Slowlog stringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- Search
Slowlog stringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- Settings
[]Elasticsearch
Index Setting Args - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- string
- Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - Sort
Fields []string - The field to sort shards in this index by.
- Sort
Orders []string - The direction to sort shards in. Accepts
asc
,desc
. - Timeout string
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - Unassigned
Node stringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- Wait
For stringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases
List<Elasticsearch
Index Alias> - Aliases for the index.
- analysis
Analyzer String - A JSON string describing the analyzers applied to the index.
- analysis
Char StringFilter - A JSON string describing the char_filters applied to the index.
- analysis
Filter String - A JSON string describing the filters applied to the index.
- analysis
Normalizer String - A JSON string describing the normalizers applied to the index.
- analysis
Tokenizer String - A JSON string describing the tokenizers applied to the index.
- analyze
Max DoubleToken Count - The maximum number of tokens that can be produced using _analyze API.
- auto
Expand StringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks
Metadata Boolean - Set to
true
to disable index metadata reads and writes. - blocks
Read Boolean - Set to
true
to disable read operations against the index. - blocks
Read BooleanOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks
Read BooleanOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks
Write Boolean - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec String
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default
Pipeline String - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion
Protection Boolean - elasticsearch
Connections List<ElasticsearchIndex Elasticsearch Connection> - Elasticsearch connection configuration block.
- final
Pipeline String - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max DoubleAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing
Slowlog StringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing
Slowlog StringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing
Slowlog StringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing
Slowlog StringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing
Slowlog StringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load
Fixed BooleanBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping
Coerce Boolean - Set index level coercion setting that is applied to all mapping types.
- mappings String
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master
Timeout String - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max
Docvalue DoubleFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - max
Inner DoubleResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max
Ngram DoubleDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max
Refresh DoubleListeners - Maximum number of refresh listeners available on each shard of the index.
- max
Regex DoubleLength - The maximum length of regex that can be used in Regexp Query.
- max
Rescore DoubleWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max
Result DoubleWindow - The maximum value of
from + size
for searches to this index. - max
Script DoubleFields - The maximum number of
script_fields
that are allowed in a query. - max
Shingle DoubleDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max
Terms DoubleCount - The maximum number of terms that can be used in Terms Query.
- name String
- Name of the index you wish to create.
- number
Of DoubleReplicas - Number of shard replicas.
- number
Of DoubleRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number
Of DoubleShards - Number of shards for the index. This can be set only on creation.
- query
Default List<String>Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh
Interval String - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition DoubleSize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing
Rebalance StringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search
Idle StringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- search
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search
Slowlog StringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search
Slowlog StringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings
List<Elasticsearch
Index Setting> - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- String
- Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort
Fields List<String> - The field to sort shards in this index by.
- sort
Orders List<String> - The direction to sort shards in. Accepts
asc
,desc
. - timeout String
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned
Node StringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait
For StringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases
Elasticsearch
Index Alias[] - Aliases for the index.
- analysis
Analyzer string - A JSON string describing the analyzers applied to the index.
- analysis
Char stringFilter - A JSON string describing the char_filters applied to the index.
- analysis
Filter string - A JSON string describing the filters applied to the index.
- analysis
Normalizer string - A JSON string describing the normalizers applied to the index.
- analysis
Tokenizer string - A JSON string describing the tokenizers applied to the index.
- analyze
Max numberToken Count - The maximum number of tokens that can be produced using _analyze API.
- auto
Expand stringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks
Metadata boolean - Set to
true
to disable index metadata reads and writes. - blocks
Read boolean - Set to
true
to disable read operations against the index. - blocks
Read booleanOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks
Read booleanOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks
Write boolean - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec string
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default
Pipeline string - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion
Protection boolean - elasticsearch
Connections ElasticsearchIndex Elasticsearch Connection[] - Elasticsearch connection configuration block.
- final
Pipeline string - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max numberAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing
Slowlog stringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing
Slowlog stringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing
Slowlog stringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing
Slowlog stringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing
Slowlog stringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load
Fixed booleanBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping
Coerce boolean - Set index level coercion setting that is applied to all mapping types.
- mappings string
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master
Timeout string - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max
Docvalue numberFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - max
Inner numberResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max
Ngram numberDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max
Refresh numberListeners - Maximum number of refresh listeners available on each shard of the index.
- max
Regex numberLength - The maximum length of regex that can be used in Regexp Query.
- max
Rescore numberWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max
Result numberWindow - The maximum value of
from + size
for searches to this index. - max
Script numberFields - The maximum number of
script_fields
that are allowed in a query. - max
Shingle numberDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max
Terms numberCount - The maximum number of terms that can be used in Terms Query.
- name string
- Name of the index you wish to create.
- number
Of numberReplicas - Number of shard replicas.
- number
Of numberRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number
Of numberShards - Number of shards for the index. This can be set only on creation.
- query
Default string[]Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh
Interval string - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition numberSize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing
Rebalance stringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search
Idle stringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- search
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search
Slowlog stringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search
Slowlog stringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search
Slowlog stringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search
Slowlog stringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search
Slowlog stringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search
Slowlog stringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search
Slowlog stringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search
Slowlog stringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings
Elasticsearch
Index Setting[] - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- string
- Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort
Fields string[] - The field to sort shards in this index by.
- sort
Orders string[] - The direction to sort shards in. Accepts
asc
,desc
. - timeout string
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned
Node stringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait
For stringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases
Sequence[Elasticsearch
Index Alias Args] - Aliases for the index.
- analysis_
analyzer str - A JSON string describing the analyzers applied to the index.
- analysis_
char_ strfilter - A JSON string describing the char_filters applied to the index.
- analysis_
filter str - A JSON string describing the filters applied to the index.
- analysis_
normalizer str - A JSON string describing the normalizers applied to the index.
- analysis_
tokenizer str - A JSON string describing the tokenizers applied to the index.
- analyze_
max_ floattoken_ count - The maximum number of tokens that can be produced using _analyze API.
- auto_
expand_ strreplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks_
metadata bool - Set to
true
to disable index metadata reads and writes. - blocks_
read bool - Set to
true
to disable read operations against the index. - blocks_
read_ boolonly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks_
read_ boolonly_ allow_ delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks_
write bool - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec str
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default_
pipeline str - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion_
protection bool - elasticsearch_
connections Sequence[ElasticsearchIndex Elasticsearch Connection Args] - Elasticsearch connection configuration block.
- final_
pipeline str - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc_
deletes str - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight_
max_ floatanalyzed_ offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing_
slowlog_ strlevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing_
slowlog_ strsource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing_
slowlog_ strthreshold_ index_ debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing_
slowlog_ strthreshold_ index_ info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing_
slowlog_ strthreshold_ index_ trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing_
slowlog_ strthreshold_ index_ warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load_
fixed_ boolbitset_ filters_ eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping_
coerce bool - Set index level coercion setting that is applied to all mapping types.
- mappings str
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master_
timeout str - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max_
docvalue_ floatfields_ search - The maximum number of
docvalue_fields
that are allowed in a query. - max_
inner_ floatresult_ window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max_
ngram_ floatdiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max_
refresh_ floatlisteners - Maximum number of refresh listeners available on each shard of the index.
- max_
regex_ floatlength - The maximum length of regex that can be used in Regexp Query.
- max_
rescore_ floatwindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max_
result_ floatwindow - The maximum value of
from + size
for searches to this index. - max_
script_ floatfields - The maximum number of
script_fields
that are allowed in a query. - max_
shingle_ floatdiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max_
terms_ floatcount - The maximum number of terms that can be used in Terms Query.
- name str
- Name of the index you wish to create.
- number_
of_ floatreplicas - Number of shard replicas.
- number_
of_ floatrouting_ shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number_
of_ floatshards - Number of shards for the index. This can be set only on creation.
- query_
default_ Sequence[str]fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh_
interval str - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing_
allocation_ strenable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing_
partition_ floatsize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing_
rebalance_ strenable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search_
idle_ strafter - How long a shard can not receive a search or get request until it’s considered search idle.
- search_
slowlog_ strlevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search_
slowlog_ strthreshold_ fetch_ debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search_
slowlog_ strthreshold_ fetch_ info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search_
slowlog_ strthreshold_ fetch_ trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search_
slowlog_ strthreshold_ fetch_ warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search_
slowlog_ strthreshold_ query_ debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search_
slowlog_ strthreshold_ query_ info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search_
slowlog_ strthreshold_ query_ trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search_
slowlog_ strthreshold_ query_ warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings
Sequence[Elasticsearch
Index Setting Args] - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- str
- Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort_
fields Sequence[str] - The field to sort shards in this index by.
- sort_
orders Sequence[str] - The direction to sort shards in. Accepts
asc
,desc
. - timeout str
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned_
node_ strleft_ delayed_ timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait_
for_ stractive_ shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases List<Property Map>
- Aliases for the index.
- analysis
Analyzer String - A JSON string describing the analyzers applied to the index.
- analysis
Char StringFilter - A JSON string describing the char_filters applied to the index.
- analysis
Filter String - A JSON string describing the filters applied to the index.
- analysis
Normalizer String - A JSON string describing the normalizers applied to the index.
- analysis
Tokenizer String - A JSON string describing the tokenizers applied to the index.
- analyze
Max NumberToken Count - The maximum number of tokens that can be produced using _analyze API.
- auto
Expand StringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks
Metadata Boolean - Set to
true
to disable index metadata reads and writes. - blocks
Read Boolean - Set to
true
to disable read operations against the index. - blocks
Read BooleanOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks
Read BooleanOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks
Write Boolean - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec String
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default
Pipeline String - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion
Protection Boolean - elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
- final
Pipeline String - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max NumberAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing
Slowlog StringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing
Slowlog StringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing
Slowlog StringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing
Slowlog StringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing
Slowlog StringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load
Fixed BooleanBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping
Coerce Boolean - Set index level coercion setting that is applied to all mapping types.
- mappings String
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master
Timeout String - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max
Docvalue NumberFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - max
Inner NumberResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max
Ngram NumberDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max
Refresh NumberListeners - Maximum number of refresh listeners available on each shard of the index.
- max
Regex NumberLength - The maximum length of regex that can be used in Regexp Query.
- max
Rescore NumberWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max
Result NumberWindow - The maximum value of
from + size
for searches to this index. - max
Script NumberFields - The maximum number of
script_fields
that are allowed in a query. - max
Shingle NumberDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max
Terms NumberCount - The maximum number of terms that can be used in Terms Query.
- name String
- Name of the index you wish to create.
- number
Of NumberReplicas - Number of shard replicas.
- number
Of NumberRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number
Of NumberShards - Number of shards for the index. This can be set only on creation.
- query
Default List<String>Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh
Interval String - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition NumberSize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing
Rebalance StringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search
Idle StringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- search
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search
Slowlog StringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search
Slowlog StringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings List<Property Map>
- DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- String
- Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort
Fields List<String> - The field to sort shards in this index by.
- sort
Orders List<String> - The direction to sort shards in. Accepts
asc
,desc
. - timeout String
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned
Node StringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait
For StringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchIndex resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Settings
Raw string - All raw settings fetched from the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Settings
Raw string - All raw settings fetched from the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- settings
Raw String - All raw settings fetched from the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- settings
Raw string - All raw settings fetched from the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- settings_
raw str - All raw settings fetched from the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- settings
Raw String - All raw settings fetched from the cluster.
Look up Existing ElasticsearchIndex Resource
Get an existing ElasticsearchIndex resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElasticsearchIndexState, opts?: CustomResourceOptions): ElasticsearchIndex
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[Sequence[ElasticsearchIndexAliasArgs]] = None,
analysis_analyzer: Optional[str] = None,
analysis_char_filter: Optional[str] = None,
analysis_filter: Optional[str] = None,
analysis_normalizer: Optional[str] = None,
analysis_tokenizer: Optional[str] = None,
analyze_max_token_count: Optional[float] = None,
auto_expand_replicas: Optional[str] = None,
blocks_metadata: Optional[bool] = None,
blocks_read: Optional[bool] = None,
blocks_read_only: Optional[bool] = None,
blocks_read_only_allow_delete: Optional[bool] = None,
blocks_write: Optional[bool] = None,
codec: Optional[str] = None,
default_pipeline: Optional[str] = None,
deletion_protection: Optional[bool] = None,
elasticsearch_connections: Optional[Sequence[ElasticsearchIndexElasticsearchConnectionArgs]] = None,
final_pipeline: Optional[str] = None,
gc_deletes: Optional[str] = None,
highlight_max_analyzed_offset: Optional[float] = None,
indexing_slowlog_level: Optional[str] = None,
indexing_slowlog_source: Optional[str] = None,
indexing_slowlog_threshold_index_debug: Optional[str] = None,
indexing_slowlog_threshold_index_info: Optional[str] = None,
indexing_slowlog_threshold_index_trace: Optional[str] = None,
indexing_slowlog_threshold_index_warn: Optional[str] = None,
load_fixed_bitset_filters_eagerly: Optional[bool] = None,
mapping_coerce: Optional[bool] = None,
mappings: Optional[str] = None,
master_timeout: Optional[str] = None,
max_docvalue_fields_search: Optional[float] = None,
max_inner_result_window: Optional[float] = None,
max_ngram_diff: Optional[float] = None,
max_refresh_listeners: Optional[float] = None,
max_regex_length: Optional[float] = None,
max_rescore_window: Optional[float] = None,
max_result_window: Optional[float] = None,
max_script_fields: Optional[float] = None,
max_shingle_diff: Optional[float] = None,
max_terms_count: Optional[float] = None,
name: Optional[str] = None,
number_of_replicas: Optional[float] = None,
number_of_routing_shards: Optional[float] = None,
number_of_shards: Optional[float] = None,
query_default_fields: Optional[Sequence[str]] = None,
refresh_interval: Optional[str] = None,
routing_allocation_enable: Optional[str] = None,
routing_partition_size: Optional[float] = None,
routing_rebalance_enable: Optional[str] = None,
search_idle_after: Optional[str] = None,
search_slowlog_level: Optional[str] = None,
search_slowlog_threshold_fetch_debug: Optional[str] = None,
search_slowlog_threshold_fetch_info: Optional[str] = None,
search_slowlog_threshold_fetch_trace: Optional[str] = None,
search_slowlog_threshold_fetch_warn: Optional[str] = None,
search_slowlog_threshold_query_debug: Optional[str] = None,
search_slowlog_threshold_query_info: Optional[str] = None,
search_slowlog_threshold_query_trace: Optional[str] = None,
search_slowlog_threshold_query_warn: Optional[str] = None,
settings: Optional[Sequence[ElasticsearchIndexSettingArgs]] = None,
settings_raw: Optional[str] = None,
shard_check_on_startup: Optional[str] = None,
sort_fields: Optional[Sequence[str]] = None,
sort_orders: Optional[Sequence[str]] = None,
timeout: Optional[str] = None,
unassigned_node_left_delayed_timeout: Optional[str] = None,
wait_for_active_shards: Optional[str] = None) -> ElasticsearchIndex
func GetElasticsearchIndex(ctx *Context, name string, id IDInput, state *ElasticsearchIndexState, opts ...ResourceOption) (*ElasticsearchIndex, error)
public static ElasticsearchIndex Get(string name, Input<string> id, ElasticsearchIndexState? state, CustomResourceOptions? opts = null)
public static ElasticsearchIndex get(String name, Output<String> id, ElasticsearchIndexState state, CustomResourceOptions options)
resources: _: type: elasticstack:ElasticsearchIndex get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aliases
List<Elasticsearch
Index Alias> - Aliases for the index.
- Analysis
Analyzer string - A JSON string describing the analyzers applied to the index.
- Analysis
Char stringFilter - A JSON string describing the char_filters applied to the index.
- Analysis
Filter string - A JSON string describing the filters applied to the index.
- Analysis
Normalizer string - A JSON string describing the normalizers applied to the index.
- Analysis
Tokenizer string - A JSON string describing the tokenizers applied to the index.
- Analyze
Max doubleToken Count - The maximum number of tokens that can be produced using _analyze API.
- Auto
Expand stringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- Blocks
Metadata bool - Set to
true
to disable index metadata reads and writes. - Blocks
Read bool - Set to
true
to disable read operations against the index. - Blocks
Read boolOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - Blocks
Read boolOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - Blocks
Write bool - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - Codec string
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - Default
Pipeline string - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- Deletion
Protection bool - Elasticsearch
Connections List<ElasticsearchIndex Elasticsearch Connection> - Elasticsearch connection configuration block.
- Final
Pipeline string - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max doubleAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- Indexing
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Indexing
Slowlog stringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - Indexing
Slowlog stringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- Indexing
Slowlog stringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- Indexing
Slowlog stringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- Indexing
Slowlog stringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- Load
Fixed boolBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- Mapping
Coerce bool - Set index level coercion setting that is applied to all mapping types.
- Mappings string
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- Master
Timeout string - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - Max
Docvalue doubleFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - Max
Inner doubleResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - Max
Ngram doubleDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- Max
Refresh doubleListeners - Maximum number of refresh listeners available on each shard of the index.
- Max
Regex doubleLength - The maximum length of regex that can be used in Regexp Query.
- Max
Rescore doubleWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - Max
Result doubleWindow - The maximum value of
from + size
for searches to this index. - Max
Script doubleFields - The maximum number of
script_fields
that are allowed in a query. - Max
Shingle doubleDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- Max
Terms doubleCount - The maximum number of terms that can be used in Terms Query.
- Name string
- Name of the index you wish to create.
- Number
Of doubleReplicas - Number of shard replicas.
- Number
Of doubleRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- Number
Of doubleShards - Number of shards for the index. This can be set only on creation.
- Query
Default List<string>Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- Refresh
Interval string - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition doubleSize - The number of shards a custom routing value can go to. This can be set only on creation.
- Routing
Rebalance stringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - Search
Idle stringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- Search
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Search
Slowlog stringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- Search
Slowlog stringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- Settings
List<Elasticsearch
Index Setting> - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- Settings
Raw string - All raw settings fetched from the cluster.
- Shard
Check stringOn Startup - Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - Sort
Fields List<string> - The field to sort shards in this index by.
- Sort
Orders List<string> - The direction to sort shards in. Accepts
asc
,desc
. - Timeout string
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - Unassigned
Node stringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- Wait
For stringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- Aliases
[]Elasticsearch
Index Alias Args - Aliases for the index.
- Analysis
Analyzer string - A JSON string describing the analyzers applied to the index.
- Analysis
Char stringFilter - A JSON string describing the char_filters applied to the index.
- Analysis
Filter string - A JSON string describing the filters applied to the index.
- Analysis
Normalizer string - A JSON string describing the normalizers applied to the index.
- Analysis
Tokenizer string - A JSON string describing the tokenizers applied to the index.
- Analyze
Max float64Token Count - The maximum number of tokens that can be produced using _analyze API.
- Auto
Expand stringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- Blocks
Metadata bool - Set to
true
to disable index metadata reads and writes. - Blocks
Read bool - Set to
true
to disable read operations against the index. - Blocks
Read boolOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - Blocks
Read boolOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - Blocks
Write bool - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - Codec string
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - Default
Pipeline string - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- Deletion
Protection bool - Elasticsearch
Connections []ElasticsearchIndex Elasticsearch Connection Args - Elasticsearch connection configuration block.
- Final
Pipeline string - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max float64Analyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- Indexing
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Indexing
Slowlog stringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - Indexing
Slowlog stringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- Indexing
Slowlog stringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- Indexing
Slowlog stringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- Indexing
Slowlog stringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- Load
Fixed boolBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- Mapping
Coerce bool - Set index level coercion setting that is applied to all mapping types.
- Mappings string
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- Master
Timeout string - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - Max
Docvalue float64Fields Search - The maximum number of
docvalue_fields
that are allowed in a query. - Max
Inner float64Result Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - Max
Ngram float64Diff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- Max
Refresh float64Listeners - Maximum number of refresh listeners available on each shard of the index.
- Max
Regex float64Length - The maximum length of regex that can be used in Regexp Query.
- Max
Rescore float64Window - The maximum value of
window_size
forrescore
requests in searches of this index. - Max
Result float64Window - The maximum value of
from + size
for searches to this index. - Max
Script float64Fields - The maximum number of
script_fields
that are allowed in a query. - Max
Shingle float64Diff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- Max
Terms float64Count - The maximum number of terms that can be used in Terms Query.
- Name string
- Name of the index you wish to create.
- Number
Of float64Replicas - Number of shard replicas.
- Number
Of float64Routing Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- Number
Of float64Shards - Number of shards for the index. This can be set only on creation.
- Query
Default []stringFields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- Refresh
Interval string - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition float64Size - The number of shards a custom routing value can go to. This can be set only on creation.
- Routing
Rebalance stringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - Search
Idle stringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- Search
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- Search
Slowlog stringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- Search
Slowlog stringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- Search
Slowlog stringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- Search
Slowlog stringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- Search
Slowlog stringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- Settings
[]Elasticsearch
Index Setting Args - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- Settings
Raw string - All raw settings fetched from the cluster.
- Shard
Check stringOn Startup - Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - Sort
Fields []string - The field to sort shards in this index by.
- Sort
Orders []string - The direction to sort shards in. Accepts
asc
,desc
. - Timeout string
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - Unassigned
Node stringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- Wait
For stringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases
List<Elasticsearch
Index Alias> - Aliases for the index.
- analysis
Analyzer String - A JSON string describing the analyzers applied to the index.
- analysis
Char StringFilter - A JSON string describing the char_filters applied to the index.
- analysis
Filter String - A JSON string describing the filters applied to the index.
- analysis
Normalizer String - A JSON string describing the normalizers applied to the index.
- analysis
Tokenizer String - A JSON string describing the tokenizers applied to the index.
- analyze
Max DoubleToken Count - The maximum number of tokens that can be produced using _analyze API.
- auto
Expand StringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks
Metadata Boolean - Set to
true
to disable index metadata reads and writes. - blocks
Read Boolean - Set to
true
to disable read operations against the index. - blocks
Read BooleanOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks
Read BooleanOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks
Write Boolean - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec String
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default
Pipeline String - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion
Protection Boolean - elasticsearch
Connections List<ElasticsearchIndex Elasticsearch Connection> - Elasticsearch connection configuration block.
- final
Pipeline String - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max DoubleAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing
Slowlog StringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing
Slowlog StringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing
Slowlog StringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing
Slowlog StringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing
Slowlog StringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load
Fixed BooleanBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping
Coerce Boolean - Set index level coercion setting that is applied to all mapping types.
- mappings String
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master
Timeout String - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max
Docvalue DoubleFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - max
Inner DoubleResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max
Ngram DoubleDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max
Refresh DoubleListeners - Maximum number of refresh listeners available on each shard of the index.
- max
Regex DoubleLength - The maximum length of regex that can be used in Regexp Query.
- max
Rescore DoubleWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max
Result DoubleWindow - The maximum value of
from + size
for searches to this index. - max
Script DoubleFields - The maximum number of
script_fields
that are allowed in a query. - max
Shingle DoubleDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max
Terms DoubleCount - The maximum number of terms that can be used in Terms Query.
- name String
- Name of the index you wish to create.
- number
Of DoubleReplicas - Number of shard replicas.
- number
Of DoubleRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number
Of DoubleShards - Number of shards for the index. This can be set only on creation.
- query
Default List<String>Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh
Interval String - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition DoubleSize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing
Rebalance StringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search
Idle StringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- search
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search
Slowlog StringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search
Slowlog StringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings
List<Elasticsearch
Index Setting> - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- settings
Raw String - All raw settings fetched from the cluster.
- shard
Check StringOn Startup - Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort
Fields List<String> - The field to sort shards in this index by.
- sort
Orders List<String> - The direction to sort shards in. Accepts
asc
,desc
. - timeout String
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned
Node StringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait
For StringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases
Elasticsearch
Index Alias[] - Aliases for the index.
- analysis
Analyzer string - A JSON string describing the analyzers applied to the index.
- analysis
Char stringFilter - A JSON string describing the char_filters applied to the index.
- analysis
Filter string - A JSON string describing the filters applied to the index.
- analysis
Normalizer string - A JSON string describing the normalizers applied to the index.
- analysis
Tokenizer string - A JSON string describing the tokenizers applied to the index.
- analyze
Max numberToken Count - The maximum number of tokens that can be produced using _analyze API.
- auto
Expand stringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks
Metadata boolean - Set to
true
to disable index metadata reads and writes. - blocks
Read boolean - Set to
true
to disable read operations against the index. - blocks
Read booleanOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks
Read booleanOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks
Write boolean - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec string
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default
Pipeline string - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion
Protection boolean - elasticsearch
Connections ElasticsearchIndex Elasticsearch Connection[] - Elasticsearch connection configuration block.
- final
Pipeline string - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max numberAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing
Slowlog stringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing
Slowlog stringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing
Slowlog stringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing
Slowlog stringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing
Slowlog stringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load
Fixed booleanBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping
Coerce boolean - Set index level coercion setting that is applied to all mapping types.
- mappings string
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master
Timeout string - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max
Docvalue numberFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - max
Inner numberResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max
Ngram numberDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max
Refresh numberListeners - Maximum number of refresh listeners available on each shard of the index.
- max
Regex numberLength - The maximum length of regex that can be used in Regexp Query.
- max
Rescore numberWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max
Result numberWindow - The maximum value of
from + size
for searches to this index. - max
Script numberFields - The maximum number of
script_fields
that are allowed in a query. - max
Shingle numberDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max
Terms numberCount - The maximum number of terms that can be used in Terms Query.
- name string
- Name of the index you wish to create.
- number
Of numberReplicas - Number of shard replicas.
- number
Of numberRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number
Of numberShards - Number of shards for the index. This can be set only on creation.
- query
Default string[]Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh
Interval string - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition numberSize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing
Rebalance stringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search
Idle stringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- search
Slowlog stringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search
Slowlog stringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search
Slowlog stringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search
Slowlog stringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search
Slowlog stringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search
Slowlog stringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search
Slowlog stringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search
Slowlog stringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search
Slowlog stringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings
Elasticsearch
Index Setting[] - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- settings
Raw string - All raw settings fetched from the cluster.
- shard
Check stringOn Startup - Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort
Fields string[] - The field to sort shards in this index by.
- sort
Orders string[] - The direction to sort shards in. Accepts
asc
,desc
. - timeout string
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned
Node stringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait
For stringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases
Sequence[Elasticsearch
Index Alias Args] - Aliases for the index.
- analysis_
analyzer str - A JSON string describing the analyzers applied to the index.
- analysis_
char_ strfilter - A JSON string describing the char_filters applied to the index.
- analysis_
filter str - A JSON string describing the filters applied to the index.
- analysis_
normalizer str - A JSON string describing the normalizers applied to the index.
- analysis_
tokenizer str - A JSON string describing the tokenizers applied to the index.
- analyze_
max_ floattoken_ count - The maximum number of tokens that can be produced using _analyze API.
- auto_
expand_ strreplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks_
metadata bool - Set to
true
to disable index metadata reads and writes. - blocks_
read bool - Set to
true
to disable read operations against the index. - blocks_
read_ boolonly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks_
read_ boolonly_ allow_ delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks_
write bool - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec str
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default_
pipeline str - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion_
protection bool - elasticsearch_
connections Sequence[ElasticsearchIndex Elasticsearch Connection Args] - Elasticsearch connection configuration block.
- final_
pipeline str - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc_
deletes str - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight_
max_ floatanalyzed_ offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing_
slowlog_ strlevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing_
slowlog_ strsource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing_
slowlog_ strthreshold_ index_ debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing_
slowlog_ strthreshold_ index_ info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing_
slowlog_ strthreshold_ index_ trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing_
slowlog_ strthreshold_ index_ warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load_
fixed_ boolbitset_ filters_ eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping_
coerce bool - Set index level coercion setting that is applied to all mapping types.
- mappings str
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master_
timeout str - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max_
docvalue_ floatfields_ search - The maximum number of
docvalue_fields
that are allowed in a query. - max_
inner_ floatresult_ window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max_
ngram_ floatdiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max_
refresh_ floatlisteners - Maximum number of refresh listeners available on each shard of the index.
- max_
regex_ floatlength - The maximum length of regex that can be used in Regexp Query.
- max_
rescore_ floatwindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max_
result_ floatwindow - The maximum value of
from + size
for searches to this index. - max_
script_ floatfields - The maximum number of
script_fields
that are allowed in a query. - max_
shingle_ floatdiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max_
terms_ floatcount - The maximum number of terms that can be used in Terms Query.
- name str
- Name of the index you wish to create.
- number_
of_ floatreplicas - Number of shard replicas.
- number_
of_ floatrouting_ shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number_
of_ floatshards - Number of shards for the index. This can be set only on creation.
- query_
default_ Sequence[str]fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh_
interval str - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing_
allocation_ strenable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing_
partition_ floatsize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing_
rebalance_ strenable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search_
idle_ strafter - How long a shard can not receive a search or get request until it’s considered search idle.
- search_
slowlog_ strlevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search_
slowlog_ strthreshold_ fetch_ debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search_
slowlog_ strthreshold_ fetch_ info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search_
slowlog_ strthreshold_ fetch_ trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search_
slowlog_ strthreshold_ fetch_ warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search_
slowlog_ strthreshold_ query_ debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search_
slowlog_ strthreshold_ query_ info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search_
slowlog_ strthreshold_ query_ trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search_
slowlog_ strthreshold_ query_ warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings
Sequence[Elasticsearch
Index Setting Args] - DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- settings_
raw str - All raw settings fetched from the cluster.
- shard_
check_ stron_ startup - Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort_
fields Sequence[str] - The field to sort shards in this index by.
- sort_
orders Sequence[str] - The direction to sort shards in. Accepts
asc
,desc
. - timeout str
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned_
node_ strleft_ delayed_ timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait_
for_ stractive_ shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
- aliases List<Property Map>
- Aliases for the index.
- analysis
Analyzer String - A JSON string describing the analyzers applied to the index.
- analysis
Char StringFilter - A JSON string describing the char_filters applied to the index.
- analysis
Filter String - A JSON string describing the filters applied to the index.
- analysis
Normalizer String - A JSON string describing the normalizers applied to the index.
- analysis
Tokenizer String - A JSON string describing the tokenizers applied to the index.
- analyze
Max NumberToken Count - The maximum number of tokens that can be produced using _analyze API.
- auto
Expand StringReplicas - Set the number of replicas to the node count in the cluster. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all)
- blocks
Metadata Boolean - Set to
true
to disable index metadata reads and writes. - blocks
Read Boolean - Set to
true
to disable read operations against the index. - blocks
Read BooleanOnly - Set to
true
to make the index and index metadata read only,false
to allow writes and metadata changes. - blocks
Read BooleanOnly Allow Delete - Identical to
index.blocks.read_only
but allows deleting the index to free up resources. - blocks
Write Boolean - Set to
true
to disable data write operations against the index. This setting does not affect metadata. - codec String
- The
default
value compresses stored data with LZ4 compression, but this can be set tobest_compression
which uses DEFLATE for a higher compression ratio. This can be set only on creation. - default
Pipeline String - The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist.
- deletion
Protection Boolean - elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
- final
Pipeline String - Final ingest pipeline for the index. Indexing requests will fail if the final pipeline is set and the pipeline does not exist. The final pipeline always runs after the request pipeline (if specified) and the default pipeline (if it exists). The special pipeline name _none indicates no ingest pipeline will run.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max NumberAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request.
- indexing
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- indexing
Slowlog StringSource - Set the number of characters of the
_source
to include in the slowlog lines,false
or0
will skip logging the source entirely and setting it totrue
will log the entire source regardless of size. The original_source
is reformatted by default to make sure that it fits on a single log line. - indexing
Slowlog StringThreshold Index Debug - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
2s
- indexing
Slowlog StringThreshold Index Info - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
5s
- indexing
Slowlog StringThreshold Index Trace - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
500ms
- indexing
Slowlog StringThreshold Index Warn - Set the cutoff for shard level slow search logging of slow searches for indexing queries, in time units, e.g.
10s
- load
Fixed BooleanBitset Filters Eagerly - Indicates whether cached filters are pre-loaded for nested queries. This can be set only on creation.
- mapping
Coerce Boolean - Set index level coercion setting that is applied to all mapping types.
- mappings String
- Mapping for fields in the index. If specified, this mapping can include: field names, field data types, mapping parameters. NOTE: - Changing datatypes in the existing mappings will force index to be re-created. - Removing field will be ignored by default same as elasticsearch. You need to recreate the index to remove field completely.
- master
Timeout String - Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. This value is ignored when running against Serverless projects. - max
Docvalue NumberFields Search - The maximum number of
docvalue_fields
that are allowed in a query. - max
Inner NumberResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. - max
Ngram NumberDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter.
- max
Refresh NumberListeners - Maximum number of refresh listeners available on each shard of the index.
- max
Regex NumberLength - The maximum length of regex that can be used in Regexp Query.
- max
Rescore NumberWindow - The maximum value of
window_size
forrescore
requests in searches of this index. - max
Result NumberWindow - The maximum value of
from + size
for searches to this index. - max
Script NumberFields - The maximum number of
script_fields
that are allowed in a query. - max
Shingle NumberDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter.
- max
Terms NumberCount - The maximum number of terms that can be used in Terms Query.
- name String
- Name of the index you wish to create.
- number
Of NumberReplicas - Number of shard replicas.
- number
Of NumberRouting Shards - Value used with numberofshards to route documents to a primary shard. This can be set only on creation.
- number
Of NumberShards - Number of shards for the index. This can be set only on creation.
- query
Default List<String>Fields - Wildcard () patterns matching one or more fields. Defaults to '', which matches all fields eligible for term-level queries, excluding metadata fields.
- refresh
Interval String - How often to perform a refresh operation, which makes recent changes to the index visible to search. Can be set to
-1
to disable refresh. - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition NumberSize - The number of shards a custom routing value can go to. This can be set only on creation.
- routing
Rebalance StringEnable - Enables shard rebalancing for this index. It can be set to:
all
,primaries
,replicas
,none
. - search
Idle StringAfter - How long a shard can not receive a search or get request until it’s considered search idle.
- search
Slowlog StringLevel - Set which logging level to use for the search slow log, can be:
warn
,info
,debug
,trace
- search
Slowlog StringThreshold Fetch Debug - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Fetch Info - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Fetch Trace - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Fetch Warn - Set the cutoff for shard level slow search logging of slow searches in the fetch phase, in time units, e.g.
10s
- search
Slowlog StringThreshold Query Debug - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
2s
- search
Slowlog StringThreshold Query Info - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
5s
- search
Slowlog StringThreshold Query Trace - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
500ms
- search
Slowlog StringThreshold Query Warn - Set the cutoff for shard level slow search logging of slow searches in the query phase, in time units, e.g.
10s
- settings List<Property Map>
- DEPRECATED: Please use dedicated setting field. Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings. NOTE: Static index settings (see: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#staticindex_settings) can be only set on the index creation and later cannot be removed or updated - apply will return error
- settings
Raw String - All raw settings fetched from the cluster.
- shard
Check StringOn Startup - Whether or not shards should be checked for corruption before opening. When corruption is detected, it will prevent the shard from being opened. Accepts
false
,true
,checksum
. - sort
Fields List<String> - The field to sort shards in this index by.
- sort
Orders List<String> - The direction to sort shards in. Accepts
asc
,desc
. - timeout String
- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to
30s
. - unassigned
Node StringLeft Delayed Timeout - Time to delay the allocation of replica shards which become unassigned because a node has left, in time units, e.g.
10s
- wait
For StringActive Shards - The number of shard copies that must be active before proceeding with the operation. Set to
all
or any positive integer up to the total number of shards in the index (numberofreplicas+1). Default:1
, the primary shard. This value is ignored when running against Serverless projects.
Supporting Types
ElasticsearchIndexAlias, ElasticsearchIndexAliasArgs
- Name string
- Index alias name.
- Filter string
- Query used to limit documents the alias can access.
- Index
Routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routing
value for indexing operations. - bool
- If true, the alias is hidden.
- Is
Write boolIndex - If true, the index is the write index for the alias.
- Routing string
- Value used to route indexing and search operations to a specific shard.
- Search
Routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- Name string
- Index alias name.
- Filter string
- Query used to limit documents the alias can access.
- Index
Routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routing
value for indexing operations. - bool
- If true, the alias is hidden.
- Is
Write boolIndex - If true, the index is the write index for the alias.
- Routing string
- Value used to route indexing and search operations to a specific shard.
- Search
Routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- name String
- Index alias name.
- filter String
- Query used to limit documents the alias can access.
- index
Routing String - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routing
value for indexing operations. - Boolean
- If true, the alias is hidden.
- is
Write BooleanIndex - If true, the index is the write index for the alias.
- routing String
- Value used to route indexing and search operations to a specific shard.
- search
Routing String - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- name string
- Index alias name.
- filter string
- Query used to limit documents the alias can access.
- index
Routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routing
value for indexing operations. - boolean
- If true, the alias is hidden.
- is
Write booleanIndex - If true, the index is the write index for the alias.
- routing string
- Value used to route indexing and search operations to a specific shard.
- search
Routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- name str
- Index alias name.
- filter str
- Query used to limit documents the alias can access.
- index_
routing str - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routing
value for indexing operations. - bool
- If true, the alias is hidden.
- is_
write_ boolindex - If true, the index is the write index for the alias.
- routing str
- Value used to route indexing and search operations to a specific shard.
- search_
routing str - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- name String
- Index alias name.
- filter String
- Query used to limit documents the alias can access.
- index
Routing String - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routing
value for indexing operations. - Boolean
- If true, the alias is hidden.
- is
Write BooleanIndex - If true, the index is the write index for the alias.
- routing String
- Value used to route indexing and search operations to a specific shard.
- search
Routing String - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
ElasticsearchIndexElasticsearchConnection, ElasticsearchIndexElasticsearchConnectionArgs
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints List<string>
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints []string
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
- api
Key string - API Key to use for authentication to Elasticsearch
- bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- ca
Data string - PEM-encoded custom Certificate Authority certificate
- ca
File string - Path to a custom Certificate Authority certificate
- cert
Data string - PEM encoded certificate for client auth
- cert
File string - Path to a file containing the PEM encoded certificate for client auth
- endpoints string[]
- es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure boolean
- Disable TLS certificate validation
- key
Data string - PEM encoded private key for client auth
- key
File string - Path to a file containing the PEM encoded private key for client auth
- password string
- Password to use for API authentication to Elasticsearch.
- username string
- Username to use for API authentication to Elasticsearch.
- api_
key str - API Key to use for authentication to Elasticsearch
- bearer_
token str - Bearer Token to use for authentication to Elasticsearch
- ca_
data str - PEM-encoded custom Certificate Authority certificate
- ca_
file str - Path to a custom Certificate Authority certificate
- cert_
data str - PEM encoded certificate for client auth
- cert_
file str - Path to a file containing the PEM encoded certificate for client auth
- endpoints Sequence[str]
- es_
client_ strauthentication - ES Client Authentication field to be used with the JWT token
- insecure bool
- Disable TLS certificate validation
- key_
data str - PEM encoded private key for client auth
- key_
file str - Path to a file containing the PEM encoded private key for client auth
- password str
- Password to use for API authentication to Elasticsearch.
- username str
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
ElasticsearchIndexSetting, ElasticsearchIndexSettingArgs
- Settings
List<Elasticsearch
Index Setting Setting> - Defines the setting for the index.
- Settings
[]Elasticsearch
Index Setting Setting - Defines the setting for the index.
- settings
List<Elasticsearch
Index Setting Setting> - Defines the setting for the index.
- settings
Elasticsearch
Index Setting Setting[] - Defines the setting for the index.
- settings
Sequence[Elasticsearch
Index Setting Setting] - Defines the setting for the index.
- settings List<Property Map>
- Defines the setting for the index.
ElasticsearchIndexSettingSetting, ElasticsearchIndexSettingSettingArgs
Import
You can later adjust the index configuration to account for those imported settings.
Some of the default settings, which could be imported are: index.number_of_replicas
, index.number_of_shards
and index.routing.allocation.include._tier_preference
.
NOTE: while importing index resource, keep in mind, that some of the default index settings will be imported into the TF state too
You can later adjust the index configuration to account for those imported settings
$ pulumi import elasticstack:index/elasticsearchIndex:ElasticsearchIndex my_index <cluster_uuid>/<index_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstack
Terraform Provider.