sunspot/lib/sunspot/field_factory.rb
# 
# Extract the encapsulated field's data from the given model and add it
# into the Solr document for indexing.
#
Extract the encapsulated field's data from the given model and add it
into the Solr document for indexing.
Extract the encapsulated field ' s data from the given model and add it into the Solr document for indexing .
def populate_document(document, model) 
        unless (value = @data_extractor.value_for(model)).nil?
          Util.Array(@field.to_indexed(value)).each do |scalar_value|
            options = {}
            options[:boost] = @field.boost if @field.boost
            document.add_field(
              @field.indexed_name.to_sym,
              scalar_value,
              options
            )
          end
        end
      end
def populate_document ( document , model ) unless ( value = @data_extractor . value_for ( model ) ) . nil? Util . Array ( @field . to_indexed ( value ) ) . each do | scalar_value | options = { } options [ :boost ] = @field . boost if @field . boost document . add_field ( @field . indexed_name . to_sym , scalar_value , options ) end end end
Extract the encapsulated field's data from the given model and add it
into the Solr document for indexing.
Extract the encapsulated field ' s data from the given model and add it into the Solr document for indexing .
#:nodoc:
document
<not_specific>
model
<not_specific>