Class: Solr::Response::Mlt

Inherits:
Ruby show all
Defined in:
lib/solr/response/mlt.rb

Instance Attribute Summary

Attributes inherited from Ruby

#data, #header

Attributes inherited from Base

#raw_response

Instance Method Summary collapse

Methods inherited from Ruby

#ok?, #query_time

Methods inherited from Base

make_response

Constructor Details

#initialize(ruby_code) ⇒ Mlt

Returns a new instance of Mlt.



2
3
4
5
# File 'lib/solr/response/mlt.rb', line 2

def initialize(ruby_code)
  super
  @response = @data['response']
end

Instance Method Details

#hitsObject



7
8
9
# File 'lib/solr/response/mlt.rb', line 7

def hits
  @response['docs']
end