Class: Solr::Document
- Inherits:
-
Object
- Object
- Solr::Document
- Defined in:
- lib/solr/document.rb
Defined Under Namespace
Classes: GroupInformation
Instance Attribute Summary collapse
-
#debug_info ⇒ Object
readonly
Returns the value of attribute debug_info.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(id:, model_name: nil, score: nil, debug_info: nil, group: GroupInformation.empty, fields: {}) ⇒ Document
constructor
TODO: model_name is specific for machinio.
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_info ⇒ Object (readonly)
Returns the value of attribute debug_info.
15 16 17 |
# File 'lib/solr/document.rb', line 15 def debug_info @debug_info end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
15 16 17 |
# File 'lib/solr/document.rb', line 15 def fields @fields end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
15 16 17 |
# File 'lib/solr/document.rb', line 15 def group @group end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
15 16 17 |
# File 'lib/solr/document.rb', line 15 def id @id end |
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
15 16 17 |
# File 'lib/solr/document.rb', line 15 def model_name @model_name end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
15 16 17 |
# File 'lib/solr/document.rb', line 15 def score @score end |