We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d71fba commit 3c8e052Copy full SHA for 3c8e052
elasticsearch-model/lib/elasticsearch/model/adapters/multiple.rb
@@ -110,7 +110,7 @@ def __ids_by_type
110
def __type(hit)
111
@@__types ||= {}
112
@@__types[[hit[:_index], hit[:_type]].join("::")] ||= begin
113
- models.detect { |model| model.index_name == hit[:_index] && model.document_type == hit[:_type] }
+ Registry.all.detect { |model| model.index_name == hit[:_index] && model.document_type == hit[:_type] }
114
end
115
116
0 commit comments