Sha256: b8d17742d5411b5fa7253e41b7661b1e541248db5a10ce3b1300a39e9fc12491
Contents?: true
Size: 328 Bytes
Versions: 20
Compression:
Stored size: 328 Bytes
Contents
module Sunspot module Query class TextFieldBoost #:nodoc: def initialize(field, boost = nil) @field, @boost = field, boost end def to_boosted_field boosted_field = @field.indexed_name boosted_field.concat("^#{@boost}") if @boost boosted_field end end end end
Version data entries
20 entries across 20 versions & 4 rubygems