Reference

Endpoint Create Index


Name

create_index

Description

Create a new index

Parameters

Parameter Required Options
Name: Name

Label: New Index Name

YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Acknowledged DT_BOOL bit
Name DT_WSTR nvarchar(255) 255
ShardsAcknowledged DT_BOOL bit
Index DT_WSTR nvarchar(150) 150
If the column you are looking for is missing, consider customizing ElasticSearch Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use ElasticSearch Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - ElasticSearch
Read / write ElasticSearch data inside your app; perform many ElasticSearch operations without coding, just use easy to use high performance API Connector for ElasticSearch
ElasticSearch
Create Index
Required Parameters
New Index Name Fill-in the parameter...
Optional Parameters
ContineOnErrorForStatusCode True
ErrorStatusCodeToMatchRegex 400
ConsumeResponseOnError True
SSIS API Source - Read from table or endpoint

API Destination

API Destination - ElasticSearch
Read / write ElasticSearch data inside your app; perform many ElasticSearch operations without coding, just use easy to use high performance API Connector for ElasticSearch
ElasticSearch
Create Index
Required Parameters
New Index Name Fill-in the parameter...
Optional Parameters
ContineOnErrorForStatusCode True
ErrorStatusCodeToMatchRegex 400
ConsumeResponseOnError True
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Create a new index (i.e. Table)

Create a new index (i.e. Create a new table). To trow error if table exists you can set ContineOnErrorForStatusCode=0

SELECT * FROM create_index WITH(Name='my_new_index_name', ContineOnErrorForStatusCode=1)

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Create a new index (i.e. Table)

Create a new index (i.e. Create a new table). To trow error if table exists you can set ContineOnErrorForStatusCode=0

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM create_index WITH(Name=''my_new_index_name'', ContineOnErrorForStatusCode=1)';

EXEC (@MyQuery) AT [LS_TO_ELASTICSEARCH_IN_GATEWAY];