Skip to content

[Dev Services] Add ElasticSearch #208

@eduardoafs

Description

@eduardoafs

Spring Boot support

Yes

Additional context

Hi team, I've liked the idea of this project and would like to contribute. One thing I can do right away is to implement dev services elasticsearch support.

It should be somehow straightforward, elasticsearch is already supported by testcontainers, so idea is to create a class extending the provided container to handle autoconfiguration for test and local profiles.

Planned features

  • Auto-configure for testcontainers elasticsearch
  • Auto-inject for ElasticsearchClient and ElasticsearchAsyncClient
  • Auto-detect and create mappings for testing purposes
  • Support to populate indexes with pre-defined documents
  • Script engine to test ScriptQueries (nice-to-have)

Open to suggestions, this is the basic one need to write automated integration tests or run locally a project that requires Elasticsearch.

Would start from latest version for both Docker image (elasticsearch:9.4.1)
And Java API

Will evaluate usage of hardened image (elasticsearch-wolfi:9.4.1, recommended for additional security) The image version should be configurable (will check backward compatibility).

I assert that this issue is relevant for Arconia

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions