Class: Solr::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/document.rb

Defined Under Namespace

Classes: GroupInformation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, model_name: nil, score: nil, debug_info: nil, group: GroupInformation.empty, fields: {}) ⇒ Document

TODO: model_name is specific for machinio



18
19
20
21
22
23
24
25
# File 'lib/solr/document.rb', line 18

def initialize(id:, model_name: nil, score: nil, debug_info: nil, group: GroupInformation.empty, fields: {})
  @id = id
  @model_name = model_name
  @score = score
  @debug_info = debug_info
  @group = group
  @fields = fields
end

Instance Attribute Details

#debug_infoObject (readonly)

Returns the value of attribute debug_info.



15
16
17
# File 'lib/solr/document.rb', line 15

def debug_info
  @debug_info
end

#fieldsObject (readonly)

Returns the value of attribute fields.



15
16
17
# File 'lib/solr/document.rb', line 15

def fields
  @fields
end

#groupObject (readonly)

Returns the value of attribute group.



15
16
17
# File 'lib/solr/document.rb', line 15

def group
  @group
end

#idObject (readonly)

Returns the value of attribute id.



15
16
17
# File 'lib/solr/document.rb', line 15

def id
  @id
end

#model_nameObject (readonly)

Returns the value of attribute model_name.



15
16
17
# File 'lib/solr/document.rb', line 15

def model_name
  @model_name
end

#scoreObject (readonly)

Returns the value of attribute score.



15
16
17
# File 'lib/solr/document.rb', line 15

def score
  @score
end