Skip to content

Commit b26f101

Browse files
committed
[STORE] Update references to Elasticsearch::Client
1 parent 5d7c43c commit b26f101

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

elasticsearch-persistence/lib/elasticsearch/persistence/repository.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ def initialize(options = {})
105105
# @example
106106
# repository.client
107107
#
108-
# @return [ Elasticsearch::Transport::Client ] The repository's client.
108+
# @return [ Elasticsearch::Client ] The repository's client.
109109
#
110110
# @since 6.0.0
111111
def client
112112
@client ||= @options[:client] ||
113113
__get_class_value(:client) ||
114-
Elasticsearch::Transport::Client.new
114+
Elasticsearch::Client.new
115115
end
116116

117117
# Get the document type used by the repository object.

elasticsearch-persistence/lib/elasticsearch/persistence/repository/dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def klass(_class = nil)
6363
#
6464
# @since 6.0.0
6565
def client(_client = nil)
66-
@client ||= (_client || Elasticsearch::Transport::Client.new)
66+
@client ||= (_client || Elasticsearch::Client.new)
6767
end
6868

6969
def create_index!(*args)

elasticsearch-persistence/spec/repository_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class RepositoryWithoutDSL
106106
context 'when options are provided' do
107107

108108
let(:client) do
109-
Elasticsearch::Transport::Client.new
109+
Elasticsearch::Client.new
110110
end
111111

112112
let(:repository) do

0 commit comments

Comments
 (0)