@@ -93,10 +93,18 @@ def self.included(base)
93
93
# Delegate important methods to the `__elasticsearch__` proxy, unless they are defined already
94
94
#
95
95
extend Support ::Forwardable
96
- forward :'self.__elasticsearch__' , :search unless respond_to? ( :search )
97
- forward :'self.__elasticsearch__' , :mapping unless respond_to? ( :mapping )
98
- forward :'self.__elasticsearch__' , :settings unless respond_to? ( :settings )
99
- forward :'self.__elasticsearch__' , :import unless respond_to? ( :import )
96
+ forward :'self.__elasticsearch__' , :search unless respond_to? ( :search )
97
+ forward :'self.__elasticsearch__' , :mapping unless respond_to? ( :mapping )
98
+ forward :'self.__elasticsearch__' , :mappings unless respond_to? ( :mappings )
99
+ forward :'self.__elasticsearch__' , :settings unless respond_to? ( :settings )
100
+ forward :'self.__elasticsearch__' , :index_name unless respond_to? ( :index_name )
101
+ forward :'self.__elasticsearch__' , :document_type unless respond_to? ( :document_type )
102
+ forward :'self.__elasticsearch__' , :import unless respond_to? ( :import )
103
+
104
+ instance_delegate [ :as_indexed_json ] => :__elasticsearch__
105
+ instance_delegate [ :index_document ] => :__elasticsearch__
106
+ instance_delegate [ :update_document ] => :__elasticsearch__
107
+ instance_delegate [ :delete_document ] => :__elasticsearch__
100
108
101
109
# Mix the importing module into the proxy
102
110
#
0 commit comments