opensearch.Index
Explore with Pulumi AI
Provides an OpenSearch index resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opensearch from "@pulumi/opensearch";
// Create a simple index
const test_simple_index = new opensearch.Index("test-simple-index", {
numberOfShards: "1",
numberOfReplicas: "1",
mappings: `{
"properties": {
"name": {
"type": "text"
}
}
}
`,
});
//# Index with aliases
const index = new opensearch.Index("index", {
aliases: JSON.stringify({
log: {
is_write_index: true,
},
}),
numberOfReplicas: "1",
numberOfShards: "1",
mappings: JSON.stringify({
properties: {
age: {
type: "integer",
},
},
}),
});
import pulumi
import json
import pulumi_opensearch as opensearch
# Create a simple index
test_simple_index = opensearch.Index("test-simple-index",
number_of_shards="1",
number_of_replicas="1",
mappings="""{
"properties": {
"name": {
"type": "text"
}
}
}
""")
## Index with aliases
index = opensearch.Index("index",
aliases=json.dumps({
"log": {
"is_write_index": True,
},
}),
number_of_replicas="1",
number_of_shards="1",
mappings=json.dumps({
"properties": {
"age": {
"type": "integer",
},
},
}))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opensearch/v2/opensearch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a simple index
_, err := opensearch.NewIndex(ctx, "test-simple-index", &opensearch.IndexArgs{
NumberOfShards: pulumi.String("1"),
NumberOfReplicas: pulumi.String("1"),
Mappings: pulumi.String(`{
"properties": {
"name": {
"type": "text"
}
}
}
`),
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"log": map[string]interface{}{
"is_write_index": true,
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal(map[string]interface{}{
"properties": map[string]interface{}{
"age": map[string]interface{}{
"type": "integer",
},
},
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
// # Index with aliases
_, err = opensearch.NewIndex(ctx, "index", &opensearch.IndexArgs{
Aliases: pulumi.String(json0),
NumberOfReplicas: pulumi.String("1"),
NumberOfShards: pulumi.String("1"),
Mappings: pulumi.String(json1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Opensearch = Pulumi.Opensearch;
return await Deployment.RunAsync(() =>
{
// Create a simple index
var test_simple_index = new Opensearch.Index("test-simple-index", new()
{
NumberOfShards = "1",
NumberOfReplicas = "1",
Mappings = @"{
""properties"": {
""name"": {
""type"": ""text""
}
}
}
",
});
//# Index with aliases
var index = new Opensearch.Index("index", new()
{
Aliases = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["log"] = new Dictionary<string, object?>
{
["is_write_index"] = true,
},
}),
NumberOfReplicas = "1",
NumberOfShards = "1",
Mappings = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["properties"] = new Dictionary<string, object?>
{
["age"] = new Dictionary<string, object?>
{
["type"] = "integer",
},
},
}),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opensearch.Index;
import com.pulumi.opensearch.IndexArgs;
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) {
// Create a simple index
var test_simple_index = new Index("test-simple-index", IndexArgs.builder()
.numberOfShards("1")
.numberOfReplicas("1")
.mappings("""
{
"properties": {
"name": {
"type": "text"
}
}
}
""")
.build());
//# Index with aliases
var index = new Index("index", IndexArgs.builder()
.aliases(serializeJson(
jsonObject(
jsonProperty("log", jsonObject(
jsonProperty("is_write_index", true)
))
)))
.numberOfReplicas("1")
.numberOfShards("1")
.mappings(serializeJson(
jsonObject(
jsonProperty("properties", jsonObject(
jsonProperty("age", jsonObject(
jsonProperty("type", "integer")
))
))
)))
.build());
}
}
resources:
# Create a simple index
test-simple-index:
type: opensearch:Index
properties:
numberOfShards: '1'
numberOfReplicas: '1'
mappings: |
{
"properties": {
"name": {
"type": "text"
}
}
}
## Index with aliases
index:
type: opensearch:Index
properties:
aliases:
fn::toJSON:
log:
is_write_index: true
numberOfReplicas: '1'
numberOfShards: '1'
mappings:
fn::toJSON:
properties:
age:
type: integer
Create Index Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Index(name: string, args?: IndexArgs, opts?: CustomResourceOptions);
@overload
def Index(resource_name: str,
args: Optional[IndexArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Index(resource_name: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[str] = 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[str] = 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,
force_destroy: Optional[bool] = None,
gc_deletes: Optional[str] = None,
highlight_max_analyzed_offset: Optional[str] = None,
include_type_name: Optional[str] = None,
index_id: Optional[str] = None,
index_knn: Optional[bool] = None,
index_knn_algo_param_ef_search: Optional[str] = None,
index_similarity_default: Optional[str] = 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,
mappings: Optional[str] = None,
max_docvalue_fields_search: Optional[str] = None,
max_inner_result_window: Optional[str] = None,
max_ngram_diff: Optional[str] = None,
max_refresh_listeners: Optional[str] = None,
max_regex_length: Optional[str] = None,
max_rescore_window: Optional[str] = None,
max_result_window: Optional[str] = None,
max_script_fields: Optional[str] = None,
max_shingle_diff: Optional[str] = None,
max_terms_count: Optional[str] = None,
name: Optional[str] = None,
number_of_replicas: Optional[str] = None,
number_of_routing_shards: Optional[str] = None,
number_of_shards: Optional[str] = None,
refresh_interval: Optional[str] = None,
rollover_alias: Optional[str] = None,
routing_allocation_enable: Optional[str] = None,
routing_partition_size: Optional[str] = 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,
shard_check_on_startup: Optional[str] = None,
sort_field: Optional[str] = None,
sort_order: Optional[str] = None)
func NewIndex(ctx *Context, name string, args *IndexArgs, opts ...ResourceOption) (*Index, error)
public Index(string name, IndexArgs? args = null, CustomResourceOptions? opts = null)
type: opensearch:Index
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 IndexArgs
- 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 IndexArgs
- 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 IndexArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IndexArgs
- 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 indexResource = new Opensearch.Index("indexResource", new()
{
Aliases = "string",
AnalysisAnalyzer = "string",
AnalysisCharFilter = "string",
AnalysisFilter = "string",
AnalysisNormalizer = "string",
AnalysisTokenizer = "string",
AnalyzeMaxTokenCount = "string",
AutoExpandReplicas = "string",
BlocksMetadata = false,
BlocksRead = false,
BlocksReadOnly = false,
BlocksReadOnlyAllowDelete = false,
BlocksWrite = false,
Codec = "string",
DefaultPipeline = "string",
ForceDestroy = false,
GcDeletes = "string",
HighlightMaxAnalyzedOffset = "string",
IncludeTypeName = "string",
IndexId = "string",
IndexKnn = false,
IndexKnnAlgoParamEfSearch = "string",
IndexSimilarityDefault = "string",
IndexingSlowlogLevel = "string",
IndexingSlowlogSource = "string",
IndexingSlowlogThresholdIndexDebug = "string",
IndexingSlowlogThresholdIndexInfo = "string",
IndexingSlowlogThresholdIndexTrace = "string",
IndexingSlowlogThresholdIndexWarn = "string",
LoadFixedBitsetFiltersEagerly = false,
Mappings = "string",
MaxDocvalueFieldsSearch = "string",
MaxInnerResultWindow = "string",
MaxNgramDiff = "string",
MaxRefreshListeners = "string",
MaxRegexLength = "string",
MaxRescoreWindow = "string",
MaxResultWindow = "string",
MaxScriptFields = "string",
MaxShingleDiff = "string",
MaxTermsCount = "string",
Name = "string",
NumberOfReplicas = "string",
NumberOfRoutingShards = "string",
NumberOfShards = "string",
RefreshInterval = "string",
RolloverAlias = "string",
RoutingAllocationEnable = "string",
RoutingPartitionSize = "string",
RoutingRebalanceEnable = "string",
SearchIdleAfter = "string",
SearchSlowlogLevel = "string",
SearchSlowlogThresholdFetchDebug = "string",
SearchSlowlogThresholdFetchInfo = "string",
SearchSlowlogThresholdFetchTrace = "string",
SearchSlowlogThresholdFetchWarn = "string",
SearchSlowlogThresholdQueryDebug = "string",
SearchSlowlogThresholdQueryInfo = "string",
SearchSlowlogThresholdQueryTrace = "string",
SearchSlowlogThresholdQueryWarn = "string",
ShardCheckOnStartup = "string",
SortField = "string",
SortOrder = "string",
});
example, err := opensearch.NewIndex(ctx, "indexResource", &opensearch.IndexArgs{
Aliases: 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.String("string"),
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"),
ForceDestroy: pulumi.Bool(false),
GcDeletes: pulumi.String("string"),
HighlightMaxAnalyzedOffset: pulumi.String("string"),
IncludeTypeName: pulumi.String("string"),
IndexId: pulumi.String("string"),
IndexKnn: pulumi.Bool(false),
IndexKnnAlgoParamEfSearch: pulumi.String("string"),
IndexSimilarityDefault: pulumi.String("string"),
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),
Mappings: pulumi.String("string"),
MaxDocvalueFieldsSearch: pulumi.String("string"),
MaxInnerResultWindow: pulumi.String("string"),
MaxNgramDiff: pulumi.String("string"),
MaxRefreshListeners: pulumi.String("string"),
MaxRegexLength: pulumi.String("string"),
MaxRescoreWindow: pulumi.String("string"),
MaxResultWindow: pulumi.String("string"),
MaxScriptFields: pulumi.String("string"),
MaxShingleDiff: pulumi.String("string"),
MaxTermsCount: pulumi.String("string"),
Name: pulumi.String("string"),
NumberOfReplicas: pulumi.String("string"),
NumberOfRoutingShards: pulumi.String("string"),
NumberOfShards: pulumi.String("string"),
RefreshInterval: pulumi.String("string"),
RolloverAlias: pulumi.String("string"),
RoutingAllocationEnable: pulumi.String("string"),
RoutingPartitionSize: pulumi.String("string"),
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"),
SortField: pulumi.String("string"),
SortOrder: pulumi.String("string"),
})
var indexResource = new Index("indexResource", IndexArgs.builder()
.aliases("string")
.analysisAnalyzer("string")
.analysisCharFilter("string")
.analysisFilter("string")
.analysisNormalizer("string")
.analysisTokenizer("string")
.analyzeMaxTokenCount("string")
.autoExpandReplicas("string")
.blocksMetadata(false)
.blocksRead(false)
.blocksReadOnly(false)
.blocksReadOnlyAllowDelete(false)
.blocksWrite(false)
.codec("string")
.defaultPipeline("string")
.forceDestroy(false)
.gcDeletes("string")
.highlightMaxAnalyzedOffset("string")
.includeTypeName("string")
.indexId("string")
.indexKnn(false)
.indexKnnAlgoParamEfSearch("string")
.indexSimilarityDefault("string")
.indexingSlowlogLevel("string")
.indexingSlowlogSource("string")
.indexingSlowlogThresholdIndexDebug("string")
.indexingSlowlogThresholdIndexInfo("string")
.indexingSlowlogThresholdIndexTrace("string")
.indexingSlowlogThresholdIndexWarn("string")
.loadFixedBitsetFiltersEagerly(false)
.mappings("string")
.maxDocvalueFieldsSearch("string")
.maxInnerResultWindow("string")
.maxNgramDiff("string")
.maxRefreshListeners("string")
.maxRegexLength("string")
.maxRescoreWindow("string")
.maxResultWindow("string")
.maxScriptFields("string")
.maxShingleDiff("string")
.maxTermsCount("string")
.name("string")
.numberOfReplicas("string")
.numberOfRoutingShards("string")
.numberOfShards("string")
.refreshInterval("string")
.rolloverAlias("string")
.routingAllocationEnable("string")
.routingPartitionSize("string")
.routingRebalanceEnable("string")
.searchIdleAfter("string")
.searchSlowlogLevel("string")
.searchSlowlogThresholdFetchDebug("string")
.searchSlowlogThresholdFetchInfo("string")
.searchSlowlogThresholdFetchTrace("string")
.searchSlowlogThresholdFetchWarn("string")
.searchSlowlogThresholdQueryDebug("string")
.searchSlowlogThresholdQueryInfo("string")
.searchSlowlogThresholdQueryTrace("string")
.searchSlowlogThresholdQueryWarn("string")
.shardCheckOnStartup("string")
.sortField("string")
.sortOrder("string")
.build());
index_resource = opensearch.Index("indexResource",
aliases="string",
analysis_analyzer="string",
analysis_char_filter="string",
analysis_filter="string",
analysis_normalizer="string",
analysis_tokenizer="string",
analyze_max_token_count="string",
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",
force_destroy=False,
gc_deletes="string",
highlight_max_analyzed_offset="string",
include_type_name="string",
index_id="string",
index_knn=False,
index_knn_algo_param_ef_search="string",
index_similarity_default="string",
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,
mappings="string",
max_docvalue_fields_search="string",
max_inner_result_window="string",
max_ngram_diff="string",
max_refresh_listeners="string",
max_regex_length="string",
max_rescore_window="string",
max_result_window="string",
max_script_fields="string",
max_shingle_diff="string",
max_terms_count="string",
name="string",
number_of_replicas="string",
number_of_routing_shards="string",
number_of_shards="string",
refresh_interval="string",
rollover_alias="string",
routing_allocation_enable="string",
routing_partition_size="string",
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_field="string",
sort_order="string")
const indexResource = new opensearch.Index("indexResource", {
aliases: "string",
analysisAnalyzer: "string",
analysisCharFilter: "string",
analysisFilter: "string",
analysisNormalizer: "string",
analysisTokenizer: "string",
analyzeMaxTokenCount: "string",
autoExpandReplicas: "string",
blocksMetadata: false,
blocksRead: false,
blocksReadOnly: false,
blocksReadOnlyAllowDelete: false,
blocksWrite: false,
codec: "string",
defaultPipeline: "string",
forceDestroy: false,
gcDeletes: "string",
highlightMaxAnalyzedOffset: "string",
includeTypeName: "string",
indexId: "string",
indexKnn: false,
indexKnnAlgoParamEfSearch: "string",
indexSimilarityDefault: "string",
indexingSlowlogLevel: "string",
indexingSlowlogSource: "string",
indexingSlowlogThresholdIndexDebug: "string",
indexingSlowlogThresholdIndexInfo: "string",
indexingSlowlogThresholdIndexTrace: "string",
indexingSlowlogThresholdIndexWarn: "string",
loadFixedBitsetFiltersEagerly: false,
mappings: "string",
maxDocvalueFieldsSearch: "string",
maxInnerResultWindow: "string",
maxNgramDiff: "string",
maxRefreshListeners: "string",
maxRegexLength: "string",
maxRescoreWindow: "string",
maxResultWindow: "string",
maxScriptFields: "string",
maxShingleDiff: "string",
maxTermsCount: "string",
name: "string",
numberOfReplicas: "string",
numberOfRoutingShards: "string",
numberOfShards: "string",
refreshInterval: "string",
rolloverAlias: "string",
routingAllocationEnable: "string",
routingPartitionSize: "string",
routingRebalanceEnable: "string",
searchIdleAfter: "string",
searchSlowlogLevel: "string",
searchSlowlogThresholdFetchDebug: "string",
searchSlowlogThresholdFetchInfo: "string",
searchSlowlogThresholdFetchTrace: "string",
searchSlowlogThresholdFetchWarn: "string",
searchSlowlogThresholdQueryDebug: "string",
searchSlowlogThresholdQueryInfo: "string",
searchSlowlogThresholdQueryTrace: "string",
searchSlowlogThresholdQueryWarn: "string",
shardCheckOnStartup: "string",
sortField: "string",
sortOrder: "string",
});
type: opensearch:Index
properties:
aliases: string
analysisAnalyzer: string
analysisCharFilter: string
analysisFilter: string
analysisNormalizer: string
analysisTokenizer: string
analyzeMaxTokenCount: string
autoExpandReplicas: string
blocksMetadata: false
blocksRead: false
blocksReadOnly: false
blocksReadOnlyAllowDelete: false
blocksWrite: false
codec: string
defaultPipeline: string
forceDestroy: false
gcDeletes: string
highlightMaxAnalyzedOffset: string
includeTypeName: string
indexId: string
indexKnn: false
indexKnnAlgoParamEfSearch: string
indexSimilarityDefault: string
indexingSlowlogLevel: string
indexingSlowlogSource: string
indexingSlowlogThresholdIndexDebug: string
indexingSlowlogThresholdIndexInfo: string
indexingSlowlogThresholdIndexTrace: string
indexingSlowlogThresholdIndexWarn: string
loadFixedBitsetFiltersEagerly: false
mappings: string
maxDocvalueFieldsSearch: string
maxInnerResultWindow: string
maxNgramDiff: string
maxRefreshListeners: string
maxRegexLength: string
maxRescoreWindow: string
maxResultWindow: string
maxScriptFields: string
maxShingleDiff: string
maxTermsCount: string
name: string
numberOfReplicas: string
numberOfRoutingShards: string
numberOfShards: string
refreshInterval: string
rolloverAlias: string
routingAllocationEnable: string
routingPartitionSize: string
routingRebalanceEnable: string
searchIdleAfter: string
searchSlowlogLevel: string
searchSlowlogThresholdFetchDebug: string
searchSlowlogThresholdFetchInfo: string
searchSlowlogThresholdFetchTrace: string
searchSlowlogThresholdFetchWarn: string
searchSlowlogThresholdQueryDebug: string
searchSlowlogThresholdQueryInfo: string
searchSlowlogThresholdQueryTrace: string
searchSlowlogThresholdQueryWarn: string
shardCheckOnStartup: string
sortField: string
sortOrder: string
Index 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 Index resource accepts the following input properties:
- Aliases string
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 stringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- Force
Destroy bool - A boolean that indicates that the index should be deleted even if it contains documents.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max stringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- Include
Type stringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - Index
Id string - The ID of this resource.
- Index
Knn bool - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- Index
Knn stringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- Index
Similarity stringDefault - A JSON string describing the default index similarity config.
- 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.
- Mappings string
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- Max
Docvalue stringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - Max
Inner stringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - Max
Ngram stringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- Max
Refresh stringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- Max
Regex stringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- Max
Rescore stringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - Max
Result stringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - Max
Script stringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - Max
Shingle stringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- Max
Terms stringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- Name string
- Name of the index to create
- Number
Of stringReplicas - Number of shard replicas. A stringified number.
- Number
Of stringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- Number
Of stringShards - Number of shards for the index. This can be set only on creation.
- 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. - Rollover
Alias string - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition stringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field string - The field to sort shards in this index by.
- Sort
Order string - The direction to sort shards in. Accepts
asc
,desc
.
- Aliases string
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 stringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- Force
Destroy bool - A boolean that indicates that the index should be deleted even if it contains documents.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max stringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- Include
Type stringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - Index
Id string - The ID of this resource.
- Index
Knn bool - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- Index
Knn stringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- Index
Similarity stringDefault - A JSON string describing the default index similarity config.
- 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.
- Mappings string
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- Max
Docvalue stringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - Max
Inner stringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - Max
Ngram stringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- Max
Refresh stringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- Max
Regex stringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- Max
Rescore stringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - Max
Result stringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - Max
Script stringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - Max
Shingle stringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- Max
Terms stringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- Name string
- Name of the index to create
- Number
Of stringReplicas - Number of shard replicas. A stringified number.
- Number
Of stringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- Number
Of stringShards - Number of shards for the index. This can be set only on creation.
- 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. - Rollover
Alias string - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition stringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field string - The field to sort shards in this index by.
- Sort
Order string - The direction to sort shards in. Accepts
asc
,desc
.
- aliases String
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 StringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force
Destroy Boolean - A boolean that indicates that the index should be deleted even if it contains documents.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max StringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include
Type StringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index
Id String - The ID of this resource.
- index
Knn Boolean - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index
Knn StringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index
Similarity StringDefault - A JSON string describing the default index similarity config.
- 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.
- mappings String
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max
Docvalue StringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max
Inner StringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max
Ngram StringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max
Refresh StringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max
Regex StringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max
Rescore StringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max
Result StringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - max
Script StringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max
Shingle StringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max
Terms StringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name String
- Name of the index to create
- number
Of StringReplicas - Number of shard replicas. A stringified number.
- number
Of StringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number
Of StringShards - Number of shards for the index. This can be set only on creation.
- 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. - rollover
Alias String - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition StringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field String - The field to sort shards in this index by.
- sort
Order String - The direction to sort shards in. Accepts
asc
,desc
.
- aliases string
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 stringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force
Destroy boolean - A boolean that indicates that the index should be deleted even if it contains documents.
- gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max stringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include
Type stringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index
Id string - The ID of this resource.
- index
Knn boolean - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index
Knn stringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index
Similarity stringDefault - A JSON string describing the default index similarity config.
- 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.
- mappings string
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max
Docvalue stringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max
Inner stringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max
Ngram stringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max
Refresh stringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max
Regex stringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max
Rescore stringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max
Result stringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - max
Script stringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max
Shingle stringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max
Terms stringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name string
- Name of the index to create
- number
Of stringReplicas - Number of shard replicas. A stringified number.
- number
Of stringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number
Of stringShards - Number of shards for the index. This can be set only on creation.
- 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. - rollover
Alias string - routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition stringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field string - The field to sort shards in this index by.
- sort
Order string - The direction to sort shards in. Accepts
asc
,desc
.
- aliases str
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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_ strtoken_ count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force_
destroy bool - A boolean that indicates that the index should be deleted even if it contains documents.
- gc_
deletes str - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight_
max_ stranalyzed_ offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include_
type_ strname - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index_
id str - The ID of this resource.
- index_
knn bool - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index_
knn_ stralgo_ param_ ef_ search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index_
similarity_ strdefault - A JSON string describing the default index similarity config.
- 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.
- mappings str
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max_
docvalue_ strfields_ search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max_
inner_ strresult_ window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max_
ngram_ strdiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max_
refresh_ strlisteners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max_
regex_ strlength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max_
rescore_ strwindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max_
result_ strwindow - The maximum value of
from + size
for searches to this index. A stringified number. - max_
script_ strfields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max_
shingle_ strdiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max_
terms_ strcount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name str
- Name of the index to create
- number_
of_ strreplicas - Number of shard replicas. A stringified number.
- number_
of_ strrouting_ shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number_
of_ strshards - Number of shards for the index. This can be set only on creation.
- 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. - rollover_
alias str - routing_
allocation_ strenable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing_
partition_ strsize - The number of shards a custom routing value can go to. A stringified number. 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
- 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_
field str - The field to sort shards in this index by.
- sort_
order str - The direction to sort shards in. Accepts
asc
,desc
.
- aliases String
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 StringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force
Destroy Boolean - A boolean that indicates that the index should be deleted even if it contains documents.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max StringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include
Type StringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index
Id String - The ID of this resource.
- index
Knn Boolean - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index
Knn StringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index
Similarity StringDefault - A JSON string describing the default index similarity config.
- 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.
- mappings String
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max
Docvalue StringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max
Inner StringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max
Ngram StringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max
Refresh StringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max
Regex StringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max
Rescore StringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max
Result StringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - max
Script StringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max
Shingle StringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max
Terms StringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name String
- Name of the index to create
- number
Of StringReplicas - Number of shard replicas. A stringified number.
- number
Of StringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number
Of StringShards - Number of shards for the index. This can be set only on creation.
- 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. - rollover
Alias String - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition StringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field String - The field to sort shards in this index by.
- sort
Order String - The direction to sort shards in. Accepts
asc
,desc
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Index resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Index Resource
Get an existing Index 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?: IndexState, opts?: CustomResourceOptions): Index
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[str] = 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[str] = 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,
force_destroy: Optional[bool] = None,
gc_deletes: Optional[str] = None,
highlight_max_analyzed_offset: Optional[str] = None,
include_type_name: Optional[str] = None,
index_id: Optional[str] = None,
index_knn: Optional[bool] = None,
index_knn_algo_param_ef_search: Optional[str] = None,
index_similarity_default: Optional[str] = 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,
mappings: Optional[str] = None,
max_docvalue_fields_search: Optional[str] = None,
max_inner_result_window: Optional[str] = None,
max_ngram_diff: Optional[str] = None,
max_refresh_listeners: Optional[str] = None,
max_regex_length: Optional[str] = None,
max_rescore_window: Optional[str] = None,
max_result_window: Optional[str] = None,
max_script_fields: Optional[str] = None,
max_shingle_diff: Optional[str] = None,
max_terms_count: Optional[str] = None,
name: Optional[str] = None,
number_of_replicas: Optional[str] = None,
number_of_routing_shards: Optional[str] = None,
number_of_shards: Optional[str] = None,
refresh_interval: Optional[str] = None,
rollover_alias: Optional[str] = None,
routing_allocation_enable: Optional[str] = None,
routing_partition_size: Optional[str] = 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,
shard_check_on_startup: Optional[str] = None,
sort_field: Optional[str] = None,
sort_order: Optional[str] = None) -> Index
func GetIndex(ctx *Context, name string, id IDInput, state *IndexState, opts ...ResourceOption) (*Index, error)
public static Index Get(string name, Input<string> id, IndexState? state, CustomResourceOptions? opts = null)
public static Index get(String name, Output<String> id, IndexState state, CustomResourceOptions options)
resources: _: type: opensearch:Index 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 string
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 stringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- Force
Destroy bool - A boolean that indicates that the index should be deleted even if it contains documents.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max stringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- Include
Type stringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - Index
Id string - The ID of this resource.
- Index
Knn bool - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- Index
Knn stringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- Index
Similarity stringDefault - A JSON string describing the default index similarity config.
- 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.
- Mappings string
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- Max
Docvalue stringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - Max
Inner stringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - Max
Ngram stringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- Max
Refresh stringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- Max
Regex stringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- Max
Rescore stringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - Max
Result stringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - Max
Script stringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - Max
Shingle stringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- Max
Terms stringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- Name string
- Name of the index to create
- Number
Of stringReplicas - Number of shard replicas. A stringified number.
- Number
Of stringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- Number
Of stringShards - Number of shards for the index. This can be set only on creation.
- 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. - Rollover
Alias string - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition stringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field string - The field to sort shards in this index by.
- Sort
Order string - The direction to sort shards in. Accepts
asc
,desc
.
- Aliases string
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 stringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- Force
Destroy bool - A boolean that indicates that the index should be deleted even if it contains documents.
- Gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- Highlight
Max stringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- Include
Type stringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - Index
Id string - The ID of this resource.
- Index
Knn bool - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- Index
Knn stringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- Index
Similarity stringDefault - A JSON string describing the default index similarity config.
- 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.
- Mappings string
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- Max
Docvalue stringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - Max
Inner stringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - Max
Ngram stringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- Max
Refresh stringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- Max
Regex stringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- Max
Rescore stringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - Max
Result stringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - Max
Script stringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - Max
Shingle stringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- Max
Terms stringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- Name string
- Name of the index to create
- Number
Of stringReplicas - Number of shard replicas. A stringified number.
- Number
Of stringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- Number
Of stringShards - Number of shards for the index. This can be set only on creation.
- 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. - Rollover
Alias string - Routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - Routing
Partition stringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field string - The field to sort shards in this index by.
- Sort
Order string - The direction to sort shards in. Accepts
asc
,desc
.
- aliases String
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 StringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force
Destroy Boolean - A boolean that indicates that the index should be deleted even if it contains documents.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max StringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include
Type StringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index
Id String - The ID of this resource.
- index
Knn Boolean - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index
Knn StringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index
Similarity StringDefault - A JSON string describing the default index similarity config.
- 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.
- mappings String
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max
Docvalue StringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max
Inner StringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max
Ngram StringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max
Refresh StringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max
Regex StringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max
Rescore StringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max
Result StringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - max
Script StringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max
Shingle StringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max
Terms StringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name String
- Name of the index to create
- number
Of StringReplicas - Number of shard replicas. A stringified number.
- number
Of StringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number
Of StringShards - Number of shards for the index. This can be set only on creation.
- 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. - rollover
Alias String - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition StringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field String - The field to sort shards in this index by.
- sort
Order String - The direction to sort shards in. Accepts
asc
,desc
.
- aliases string
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 stringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force
Destroy boolean - A boolean that indicates that the index should be deleted even if it contains documents.
- gc
Deletes string - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max stringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include
Type stringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index
Id string - The ID of this resource.
- index
Knn boolean - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index
Knn stringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index
Similarity stringDefault - A JSON string describing the default index similarity config.
- 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.
- mappings string
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max
Docvalue stringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max
Inner stringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max
Ngram stringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max
Refresh stringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max
Regex stringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max
Rescore stringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max
Result stringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - max
Script stringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max
Shingle stringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max
Terms stringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name string
- Name of the index to create
- number
Of stringReplicas - Number of shard replicas. A stringified number.
- number
Of stringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number
Of stringShards - Number of shards for the index. This can be set only on creation.
- 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. - rollover
Alias string - routing
Allocation stringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition stringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field string - The field to sort shards in this index by.
- sort
Order string - The direction to sort shards in. Accepts
asc
,desc
.
- aliases str
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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_ strtoken_ count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force_
destroy bool - A boolean that indicates that the index should be deleted even if it contains documents.
- gc_
deletes str - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight_
max_ stranalyzed_ offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include_
type_ strname - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index_
id str - The ID of this resource.
- index_
knn bool - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index_
knn_ stralgo_ param_ ef_ search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index_
similarity_ strdefault - A JSON string describing the default index similarity config.
- 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.
- mappings str
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max_
docvalue_ strfields_ search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max_
inner_ strresult_ window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max_
ngram_ strdiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max_
refresh_ strlisteners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max_
regex_ strlength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max_
rescore_ strwindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max_
result_ strwindow - The maximum value of
from + size
for searches to this index. A stringified number. - max_
script_ strfields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max_
shingle_ strdiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max_
terms_ strcount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name str
- Name of the index to create
- number_
of_ strreplicas - Number of shard replicas. A stringified number.
- number_
of_ strrouting_ shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number_
of_ strshards - Number of shards for the index. This can be set only on creation.
- 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. - rollover_
alias str - routing_
allocation_ strenable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing_
partition_ strsize - The number of shards a custom routing value can go to. A stringified number. 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
- 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_
field str - The field to sort shards in this index by.
- sort_
order str - The direction to sort shards in. Accepts
asc
,desc
.
- aliases String
- A JSON string describing a set of aliases. The index aliases API allows aliasing an index with a name, with all APIs automatically converting the alias name to the actual index name. An alias can also be mapped to more than one index, and when specifying it, the alias will automatically expand to the aliased indices.
- 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 StringToken Count - The maximum number of tokens that can be produced using _analyze API. A stringified number.
- 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.
- force
Destroy Boolean - A boolean that indicates that the index should be deleted even if it contains documents.
- gc
Deletes String - The length of time that a deleted document's version number remains available for further versioned operations.
- highlight
Max StringAnalyzed Offset - The maximum number of characters that will be analyzed for a highlight request. A stringified number.
- include
Type StringName - A string that indicates if and what we should pass to includetypename parameter. Set to
"false"
when trying to create an index on a v6 cluster without a doc type or set to"true"
when trying to create an index on a v7 cluster with a doc type. Since mapping updates are not currently supported, this applies only on index create. - index
Id String - The ID of this resource.
- index
Knn Boolean - Indicates whether the index should build native library indices for the knnvector fields. If set to false, the knnvector fields will be stored in doc values, but Approximate k-NN search functionality will be disabled.
- index
Knn StringAlgo Param Ef Search - The size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches. Only available for nmslib.
- index
Similarity StringDefault - A JSON string describing the default index similarity config.
- 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.
- mappings String
- A JSON string defining how documents in the index, and the fields they contain, are stored and indexed. To avoid the complexities of field mapping updates, updates of this field are not allowed via this provider.
- max
Docvalue StringFields Search - The maximum number of
docvalue_fields
that are allowed in a query. A stringified number. - max
Inner StringResult Window - The maximum value of
from + size
for inner hits definition and top hits aggregations to this index. A stringified number. - max
Ngram StringDiff - The maximum allowed difference between mingram and maxgram for NGramTokenizer and NGramTokenFilter. A stringified number.
- max
Refresh StringListeners - Maximum number of refresh listeners available on each shard of the index. A stringified number.
- max
Regex StringLength - The maximum length of regex that can be used in Regexp Query. A stringified number.
- max
Rescore StringWindow - The maximum value of
window_size
forrescore
requests in searches of this index. A stringified number. - max
Result StringWindow - The maximum value of
from + size
for searches to this index. A stringified number. - max
Script StringFields - The maximum number of
script_fields
that are allowed in a query. A stringified number. - max
Shingle StringDiff - The maximum allowed difference between maxshinglesize and minshinglesize for ShingleTokenFilter. A stringified number.
- max
Terms StringCount - The maximum number of terms that can be used in Terms Query. A stringified number.
- name String
- Name of the index to create
- number
Of StringReplicas - Number of shard replicas. A stringified number.
- number
Of StringRouting Shards - Value used with numberofshards to route documents to a primary shard. A stringified number. This can be set only on creation.
- number
Of StringShards - Number of shards for the index. This can be set only on creation.
- 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. - rollover
Alias String - routing
Allocation StringEnable - Controls shard allocation for this index. It can be set to:
all
,primaries
,new_primaries
,none
. - routing
Partition StringSize - The number of shards a custom routing value can go to. A stringified number. 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
- 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
Field String - The field to sort shards in this index by.
- sort
Order String - The direction to sort shards in. Accepts
asc
,desc
.
Import
Import by name
$ pulumi import opensearch:index/index:Index test terraform-test
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opensearch opensearch-project/terraform-provider-opensearch
- License
- Notes
- This Pulumi package is based on the
opensearch
Terraform Provider.