ElasticSearch Connector
Documentation
Version: 5
Documentation

EndPoint Delete Index


Parameters

Parameter Label Required Options Description
Name Index to delete 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
ErrorStatus DT_I4 int False
ErrorReason DT_WSTR nvarchar(1000) 1000 False
ErrorType DT_WSTR nvarchar(255) 255 False
ErrorId DT_WSTR nvarchar(255) 255 False
ErrorIndex DT_WSTR nvarchar(255) 255 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:

Delete Index using API Source

ElasticSearch
Delete Index
SSIS API Source - Read from table or endpoint

Delete Index using API Destination

ElasticSearch
Delete Index
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Delete an exising index (i.e. Table)

Delete an exising index. It it exists it will show status code 400

SELECT * FROM delete_index WITH(Name='my_index_name', ContineOn404Error=1 )

SQL Server

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

Delete an exising index (i.e. Table)

Delete an exising index. It it exists it will show status code 400

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM delete_index WITH(Name=''my_index_name'', ContineOn404Error=1 )';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_ELASTICSEARCH_IN_DATA_GATEWAY];