Module: ElasticGraph::JSONIngestion::IndexerExtension

Defined in:
elasticgraph-json_ingestion/lib/elastic_graph/json_ingestion/indexer_extension.rb

Overview

Provides the default JSON adapter. Registered by SchemaDefinition::APIExtension.

Instance Method Summary collapse

Instance Method Details

#ingestion_adapters_by_formatHash<String, ElasticGraph::Indexer::IngestionAdapter::Interface>

Returns the configured ingestion adapters with the built-in JSON adapter registered.

Returns:

  • (Hash<String, ElasticGraph::Indexer::IngestionAdapter::Interface>)


18
19
20
21
22
# File 'elasticgraph-json_ingestion/lib/elastic_graph/json_ingestion/indexer_extension.rb', line 18

def ingestion_adapters_by_format
  @ingestion_adapters_by_format ||= super.merge(
    "json" => IngestionAdapter.new(schema_artifacts: schema_artifacts, logger: logger)
  )
end