valtenhyl opened a new issue, #9352: URL: https://github.com/apache/seatunnel/issues/9352
### Search before asking - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description Could you provide an example of SeaTunnel’s configuration to handle nested-type mappings during Elasticsearch writes? mappings ``` PUT /orders { "mappings": { "properties": { "user": { "type": "keyword" }, "products": { "type": "nested", "properties": { "name": { "type": "keyword" }, "price": { "type": "double" }, "tags": { "type": "keyword" } } }, "timestamp": { "type": "date", "format": "yyyy-MM-dd HH:mm:ss" } } } } ``` bulk ``` POST /orders/_bulk { "index": { "_id": 1 }} { "user": "Alice", "products": [ { "name": "Laptop", "price": 999.99, "tags": ["electronics", "apple"] }, { "name": "Mouse", "price": 25.50, "tags": ["accessories"] } ], "timestamp": "2023-10-01 10:30:00" } { "index": { "_id": 2 }} { "user": "Bob", "products": [ { "name": "Keyboard", "price": 45.00, "tags": ["electronics", "wireless"] } ], "timestamp": "2023-10-02 11:15:00" } { "index": { "_id": 3 }} { "user": "Alice", "products": [ { "name": "Monitor", "price": 200.00, "tags": ["electronics"] }, { "name": "USB Cable", "price": 8.99, "tags": ["accessories"] } ], "timestamp": "2023-10-03 09:45:00" } ``` es_to_es.conf ``` # Defining the runtime environment env { parallelism = 4 job.mode = "BATCH" } source{ Elasticsearch { hosts = ["http://192.168.40.58:9200"] username = "elastic" password = "123456" index = "orders" plugin_output = "input_t" } } transform { } sink { Elasticsearch { hosts = ["http://192.168.40.58:9200"] username = "elastic" password = "123456" index = "orders2" primary_keys = ["user"] plugin_input = "input_t" bulk_flush_max_actions = 1000 bulk_flush_interval = 2000 schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST" data_save_mode = "APPEND_DATA" } } ``` ### Usage Scenario Could you provide an example of SeaTunnel’s configuration to handle nested-type mappings during Elasticsearch writes? ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
