ElasticsearchLoader¶
The ElasticsearchLoader writes processed rows into a given Elasticsearch index
and returns the rows.
Configuration¶
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
Name of the Elasticsearch index where the documents are stored. |
|
Attribute |
Name of the field in the row that is used as the Elasticsearch document ID ( |
The Elasticsearch hosts are configured via the project configuration
(e.g. SpringbokCommonConfig::getElasticsearchLoaderHosts()) and are not
provided in the pipeline XML.
Example¶
Input data¶
Row |
code |
name |
symbol |
|---|---|---|---|
1 |
String: |
String: |
String: |
2 |
String: |
String: |
String: |
Pipeline configuration¶
<elasticsearch
index="currency"
idField="code"
/>
Elasticsearch output¶
Documents stored in the currency index:
_id |
code |
name |
symbol |
|---|---|---|---|
|
|
|
|
|
|
|
|
Pipeline output¶
The ElasticsearchLoader returns the input rows unchanged.
Row |
code |
name |
symbol |
|---|---|---|---|
1 |
String: |
String: |
String: |
2 |
String: |
String: |
String: |