diff --git a/lib/searchkick/query.rb b/lib/searchkick/query.rb
index <HASH>..<HASH> 100644
--- a/lib/searchkick/query.rb
+++ b/lib/searchkick/query.rb
@@ -132,21 +132,23 @@ module Searchkick
         pp options
         puts
 
-        puts "Model Search Data"
-        begin
-          pp klass.first(3).map { |r| {index: searchkick_index.record_data(r).merge(data: searchkick_index.send(:search_data, r))}}
-        rescue => e
-          puts "#{e.class.name}: #{e.message}"
-        end
-        puts
+        if searchkick_index
+          puts "Model Search Data"
+          begin
+            pp klass.first(3).map { |r| {index: searchkick_index.record_data(r).merge(data: searchkick_index.send(:search_data, r))}}
+          rescue => e
+            puts "#{e.class.name}: #{e.message}"
+          end
+          puts
 
-        puts "Elasticsearch Mapping"
-        puts JSON.pretty_generate(searchkick_index.mapping)
-        puts
+          puts "Elasticsearch Mapping"
+          puts JSON.pretty_generate(searchkick_index.mapping)
+          puts
 
-        puts "Elasticsearch Settings"
-        puts JSON.pretty_generate(searchkick_index.settings)
-        puts
+          puts "Elasticsearch Settings"
+          puts JSON.pretty_generate(searchkick_index.settings)
+          puts
+        end
 
         puts "Elasticsearch Query"
         puts to_curl
Fixed debug option with multiple models - #<I> [skip ci]