Skip to content

Migrate ElasticSearch rails/ruby gem to OpenSearch compatible. #1477

@richardhallett

Description

@richardhallett

We are currently using Elasticsearch-rails 7.x gem with OpenSearch via the compatability layer.
However we need to migrate to something that is compatible with OpenSearch API this is in order to be able to upgrade our OpenSearch cluster to the newer 3.x.

Possible options to investigate:

  • Use just the opensearch-ruby official gem underneath the Elasticsearch rails gem, as it's the underlying gem that does all the ES connection part, we might be able to get away with the existing way the Rails model spec definitions are done.
  • There is an opensearch-rails fork, but it is not official and possibly unmaintained, we could investigate this or/fork ourselves with the changes we need.
  • A further option is to just rewrite how we work with OS in lupo, this could be either of two options, use a completly different gem that lets you define index definitions e.g. https://github.com/ankane/searchkick or even just manage it ourselves with direct OS API.

This issue is probably not that easy, but some initial investigation needs to happen to determine a path forward, or even a first step forward (which might be the first option).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions