Skip to content

Conversation

@haarg
Copy link
Member

@haarg haarg commented Oct 24, 2024

Make all uses of elasticsearch_servers consistent, passing the value directly to the MooseX::Types::ElasticSearch::ES type coercion. This ensures we can use any value that the type will accept. This allows adding additional parameters that will be passed to the constructor.

With that allowed, explicitly set the client version we want to use. Since we are currently pinned to Search::Elasticsearch 2.03, this won't have any direct impact. But it will assist in upgrading the Search::Elasticsearch version.

A _local config with just a string specified will override the entire config, which for now will continue to work fine. Eventually, those should be updated to use a hash so they can override only the nodes.

Make all uses of elasticsearch_servers consistent, passing the value
directly to the MooseX::Types::ElasticSearch::ES type coercion. This
ensures we can use any value that the type will accept. This allows
adding additional parameters that will be passed to the constructor.

With that allowed, explicitly set the client version we want to use.
Since we are currently pinned to Search::Elasticsearch 2.03, this won't
have any direct impact. But it will assist in upgrading the
Search::Elasticsearch version.

A _local config with just a string specified will override the entire
config, which for now will continue to work fine. Eventually, those
should be updated to use a hash so they can override only the nodes.
@haarg haarg force-pushed the haarg/es-config-consistency branch from 697fe01 to b575361 Compare October 24, 2024 06:11
@haarg haarg merged commit e134d2c into master Oct 24, 2024
1 check passed
@haarg haarg deleted the haarg/es-config-consistency branch October 24, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants