Skip to main content
Elasticsearch logo

Configuration Parameters

By default, the Mage table name is used to set the Elasticsearch index name.

Metadata Field Mapping

Use metadata_fields to extract values from incoming records and apply them to Elasticsearch document metadata (e.g., _id):
Example:
This will set the _id of each indexed document to the value of the my_id field in the input record.

Bulk Operation Settings (bulk_kwargs)

All options below are optional, but useful for controlling indexing performance and fault tolerance.

Example Configuration


Notes

  • You can authenticate with basic auth, bearer tokens, or API keys.
  • Set _op_type: create if you want to avoid overwriting documents with the same _id.
  • For production environments, it’s recommended to use https, enable verify_certs, and configure ssl_ca_file.
  • Performance tuning with bulk_kwargs is especially helpful for large datasets or real-time indexing.