Skip to content

Commit

Permalink
Add Elasticsearch Connector
Browse files Browse the repository at this point in the history
  • Loading branch information
esmarkowski committed Mar 31, 2024
1 parent aff229a commit e36333c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stretchy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
require_relative "stretchy/rails/instrumentation/railtie" if defined?(Rails)
require_relative "stretchy/rails/railtie" if defined?(Rails)
require_relative 'elasticsearch/api/namespace/machine_learning/model'
require_relative 'elasticsearch/api/namespace/connector'

module Stretchy

Expand All @@ -28,6 +29,7 @@ def self.loader

def self.boot!
loader.setup
Elasticsearch::API.send(:include, Elasticsearch::API::Connector)
Elasticsearch::API.send(:include, Elasticsearch::API::MachineLearning::Models)
Stretchy::Attributes.register!
end
Expand Down

0 comments on commit e36333c

Please sign in to comment.