Sha256: 18171266400d6797b7eac1077409276910888d7dbed241b21cac028d276301ef

Contents?: true

Size: 621 Bytes

Versions: 30

Compression:

Stored size: 621 Bytes

Contents

module Gummi
  module DbLayer
    module Fields
      class NgramAndPlain < Virtus::Attribute
        def coerce(value)
          value
        end

        def mapping
          { type: 'multi_field',
                      fields: {
                                name      => { type: 'string', index_analyzer: 'text_index_analyzer',   search_analyzer: 'text_search_analyzer' },
                                :plain    => { type: 'string', index_analyzer: 'string_index_analyzer', search_analyzer: 'text_search_analyzer' },
                              }
                    }
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gummi-1.0.10 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.9 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.8 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.7 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.6 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.5 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.4 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.16 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.3 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.2 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-1.0.0 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.14 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.13 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.12 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.11 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.10 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.9 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.8 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.7 lib/gummi/db_layer/fields/ngram_and_plain.rb
gummi-0.3.6 lib/gummi/db_layer/fields/ngram_and_plain.rb