Maestro provides default support for two Elasticsearch index mappings: file_centric
and analysis_centric
.
You can disable whichever index you do not need in the indexes
section by setting the enabled
property to false
.
# ---------------------------# ELASTICSEARCH INDEX MAPPINGS# ---------------------------# Index name to store documents in (will be created if not existing)FILECENTRIC_NAME=file_centric_1.0FILECENTRIC_ALIAS=file_centricFILECENTRIC_ENABLED=trueANALYSISCENTRIC_NAME=analysis_centric_1.0ANALYSISCENTRIC_ALIAS=analysis_centricANALYSISCENTRIC_ENABLED=true
The default mappings can be found in the Maestro GitHub repository here:
Maestro uses the elasticsearch-rest-high-level-client
provided by Elastic. For in-depth details about this client, you can refer to the official JAVA high-level REST client documentation by Elastic. .
The table below breaks down the client configurations illustrated in the code section that follows:
Property | Description |
---|---|
basicAuth -> enabled | Determines whether to enable basic authentication for the Elasticsearch client |
basicAuth -> user | The username that the Elasticsearch client will use to authenticate with the server. Only used if basicAuth -> enabled is set to true . |
trustSelfSignedCert | Dictates if the client should trust self-signed certificates. Useful for testing and development environments. |
The following configurations are specifically designed to optimize indexing performance, establish connection parameters, and ensure robust error-handling mechanisms:
# ---------------------------# ELASTICSEARCH CLIENT PROPERTIES# ---------------------------# Basic authentication settingsCLIENT_BASICAUTH_ENABLED=falseCLIENT_BASICAUTH_USER=elasticCLIENT_BASICAUTH_PASSWORD=dummy-pass# Trust self-signed certificate settingCLIENT_TRUSTSELFSIGNEDCERT=false# Control the number of documents per bulk request in ElasticsearchCLIENT_DOCSPERBULKREQMAX=5000# Maximum time to wait for a connection to be establishedCLIENT_CONNECTIONTIMEOUT=5000# Maximum time to wait on idle connection (no data flow)CLIENT_SOCKETTIMEOUT=10000# Retry settings in case of failure# Maximum number of retry attempts before throwing an errorCLIENT_RETRY_MAXATTEMPTS=3# Waiting between retries (in milliseconds)CLIENT_RETRY_WAITDURATIONMILLIS=500