Sha256: 4e6a93cf1c30316be38114f46a5e6b58e7ad8b159990c3d14f06d2d814ddcce2

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

module Georgia
  module Indexer
    module Solr
      module Georgia
        module Message
          def self.extended(base)
            base.class_eval do
              searchable do
                text :name
                text :email
                text :message
                text :subject
                text :phone
                string :spam do
                  status
                end
                # For sorting:
                string :name
                string :email
                string :phone
                string :subject
                string :message
                time :created_at
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
georgia-0.7.3 lib/georgia/indexer/solr/georgia/message.rb
georgia-0.7.2 lib/georgia/indexer/solr/georgia/message.rb