EndPoint Create Index
Parameters
Parameter | Label | Required | Options | Description |
---|---|---|---|---|
Name | New Index Name | YES |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Acknowledged |
DT_BOOL
|
bit
|
False |
||
Name |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
ShardsAcknowledged |
DT_BOOL
|
bit
|
False |
||
Index |
DT_WSTR
|
nvarchar(150)
|
150 | False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | 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 component to read data or in API Destination component to read/write data:
Create Index using API Source
ElasticSearch
Create Index

Create Index using API Destination
ElasticSearch
Create Index

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 [LINKED_SERVER_TO_ELASTICSEARCH_IN_DATA_GATEWAY];