Class: XapianDb::DocumentBlueprint::IndexOptions
- Inherits:
-
Object
- Object
- XapianDb::DocumentBlueprint::IndexOptions
- Defined in:
- lib/xapian_db/document_blueprint.rb
Overview
Options for an indexed method
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#no_split ⇒ Object
readonly
Returns the value of attribute no_split.
-
#prefixed ⇒ Object
readonly
Returns the value of attribute prefixed.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ IndexOptions
constructor
Constructor.
Constructor Details
#initialize(options = {}) ⇒ IndexOptions
Constructor
448 449 450 451 452 453 |
# File 'lib/xapian_db/document_blueprint.rb', line 448 def initialize( = {}) @weight = [:weight] || 1 @prefixed = [:prefixed].nil? ? true : [:prefixed] @no_split = [:no_split] @block = [:block] end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
443 444 445 |
# File 'lib/xapian_db/document_blueprint.rb', line 443 def block @block end |
#no_split ⇒ Object (readonly)
Returns the value of attribute no_split.
443 444 445 |
# File 'lib/xapian_db/document_blueprint.rb', line 443 def no_split @no_split end |
#prefixed ⇒ Object (readonly)
Returns the value of attribute prefixed.
443 444 445 |
# File 'lib/xapian_db/document_blueprint.rb', line 443 def prefixed @prefixed end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
443 444 445 |
# File 'lib/xapian_db/document_blueprint.rb', line 443 def weight @weight end |