Module: Isomorfeus::Ferret::BoostMixin

Included in:
Document, Field
Defined in:
lib/isomorfeus/ferret/document.rb

Overview

Instead of using documents to add data to an index you can use Hashes and Arrays. The only real benefits of using a Document over a Hash are pretty printing and the boost attribute. You can add the boost attribute to Hashes and arrays using the BoostMixin. For example;

class Hash
  include BoostMixin
end

class Array
  include BoostMixin
end

class String
  include BoostMixin
end

Instance Attribute Summary collapse

Instance Attribute Details

#boostObject

Returns the value of attribute boost.



20
21
22
# File 'lib/isomorfeus/ferret/document.rb', line 20

def boost
  @boost
end