Overview
The Elasticsearch module provides direct access to the Ingenuity Elasticsearch endpoint. This module is deprecated and will be removed in a future release.
Key Entry Point
Section titled “Key Entry Point”Use get_elastic() to create a client:
from eigeningenuity import get_elastic, EigenServer
ei = EigenServer("https://demo.eigen.co/")elastic = get_elastic(ei)Common Operations
Section titled “Common Operations”List Indices
Section titled “List Indices”indices = elastic.listIndices("elasticsearch-int")Execute a Raw Query
Section titled “Execute a Raw Query”query = {"query": {"match_all": {}}}results = elastic.executeRawQuery("my-index", query)Output Formats
Section titled “Output Formats”Most calls support:
json(default)df(pandas DataFrame)raw(full API response)file(write JSON to disk)
Authentication
Section titled “Authentication”For secured environments, configure Azure auth before creating the client. See Authentication.