No release in over 3 years
Connects Legion to Elastic App Search
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

lex-elastic_app_search

Elastic App Search integration for LegionIO. Manages engines, documents, search, analytics, schemas, synonyms, curations, credentials, and click-through tracking.

Installation

gem install lex-elastic_app_search

Or add to your Gemfile:

gem 'lex-elastic_app_search'

Standalone Usage

require 'legion/extensions/elastic_app_search'

client = Legion::Extensions::ElasticAppSearch::Client.new(
  host: 'https://your-deployment.ent-search.region.aws.cloud.es.io',
  api_key: 'your-api-key'
)

client.list_engines
client.search(engine_name: 'my-engine', query: 'hello')

Constructor accepts host: (default http://localhost:3002) and api_key: kwargs.

Runners

Runner Operations
Engines Engine management
Documents Document CRUD
Search Search queries
Analytics Search analytics
Schemas Schema management
Synonyms Synonym sets
Curations Search curations
Credentials API key management
ClickThrough Click-through tracking

Configuration

Default host: http://localhost:3002. Override via Legion settings:

{
  "extensions": {
    "elastic_app_search": {
      "host": "https://your-deployment.ent-search.region.aws.cloud.es.io",
      "api_key": "your-api-key"
    }
  }
}

Requirements

  • Ruby >= 3.4
  • Elastic App Search instance
  • LegionIO framework (optional for standalone client)

License

MIT