Class OpenSearchConfig
java.lang.Object
org.craftercms.deployer.utils.opensearch.OpenSearchConfig
Holds the configuration for connecting to OpenSearch, either a single or multiple clusters
- Since:
- 3.1.5
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringfinal OpenSearchClusterConfigThe global cluster, used for connecting to a single cluster for read & write operationsMapping of locale codes to OpenSearch language analyzersfinal OpenSearchClusterConfigThe read cluster, used for connecting to multiple clustersfinal List<OpenSearchClusterConfig> The write clusters, used for connecting to multiple clusters -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchConfig(org.apache.commons.configuration2.HierarchicalConfiguration<?> config) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if a single cluster should be used, only if any of the read or write clusters is missing
-
Field Details
-
CONFIG_KEY_GLOBAL_CLUSTER
- See Also:
-
CONFIG_KEY_READ_CLUSTER
- See Also:
-
CONFIG_KEY_WRITE_CLUSTERS
- See Also:
-
CONFIG_KEY_LOCALE_MAPPING
- See Also:
-
CONFIG_KEY_INDEX_SETTINGS
- See Also:
-
CONFIG_KEY_KEY
- See Also:
-
CONFIG_KEY_VALUE
- See Also:
-
globalCluster
The global cluster, used for connecting to a single cluster for read & write operations -
readCluster
The read cluster, used for connecting to multiple clusters -
writeClusters
The write clusters, used for connecting to multiple clusters -
localeMapping
Mapping of locale codes to OpenSearch language analyzers -
indexSettings
-
-
Constructor Details
-
OpenSearchConfig
@ConstructorProperties("config") public OpenSearchConfig(org.apache.commons.configuration2.HierarchicalConfiguration<?> config)
-
-
Method Details
-
useSingleCluster
public boolean useSingleCluster()Indicates if a single cluster should be used, only if any of the read or write clusters is missing -
getLocaleMapping
-