Sha256: 2bddc1ca75dd473127aee90bba96976e971760f62d32626585ccc35260e18271

Contents?: true

Size: 421 Bytes

Versions: 16

Compression:

Stored size: 421 Bytes

Contents

module Sunspot
  module Query
    class Spellcheck < Connective::Conjunction
      attr_accessor :options

      def initialize(options = {})
        @options = options
      end

      def to_params
        options = {}
        @options.each do |key, val|
          options["spellcheck." + Sunspot::Util.method_case(key.to_s)] = val
        end
        { :spellcheck => true }.merge(options)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
sunspot-2.7.1 lib/sunspot/query/spellcheck.rb
sunspot-2.7.0 lib/sunspot/query/spellcheck.rb
sunspot-2.6.0 lib/sunspot/query/spellcheck.rb
sunspot-2.5.0 lib/sunspot/query/spellcheck.rb
sunspot-2.4.0 lib/sunspot/query/spellcheck.rb
sunspot-2.3.0 lib/sunspot/query/spellcheck.rb
sunspot-2.2.8 lib/sunspot/query/spellcheck.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot-2.2.7/lib/sunspot/query/spellcheck.rb
sunspot-2.2.7 lib/sunspot/query/spellcheck.rb
sunspot-2.2.6 lib/sunspot/query/spellcheck.rb
sunspot-2.2.5 lib/sunspot/query/spellcheck.rb
sunspot-2.2.4 lib/sunspot/query/spellcheck.rb
sunspot-2.2.3 lib/sunspot/query/spellcheck.rb
sunspot-2.2.2 lib/sunspot/query/spellcheck.rb
sunspot-2.2.1 lib/sunspot/query/spellcheck.rb
sunspot-2.2.0 lib/sunspot/query/spellcheck.rb