Sha256: a17841cb00299357106e0ffa266d4c2bd83c7eb994810140ec00670899bdfd64

Contents?: true

Size: 568 Bytes

Versions: 7

Compression:

Stored size: 568 Bytes

Contents

module Gummi
  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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gummi-0.1.2 lib/gummi/fields/ngram_and_plain.rb
gummi-0.1.1 lib/gummi/fields/ngram_and_plain.rb
gummi-0.1.0 lib/gummi/fields/ngram_and_plain.rb
gummi-0.0.9 lib/gummi/fields/ngram_and_plain.rb
gummi-0.0.8 lib/gummi/fields/ngram_and_plain.rb
gummi-0.0.7 lib/gummi/fields/ngram_and_plain.rb
gummi-0.0.6 lib/gummi/fields/ngram_and_plain.rb