Sha256: 22a3dc4208a76d063b8607ef8db06658e6b6a1c2bb53d7ccfe96ea44f1b78239
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
class <%= class_name %>Index < Elastic::Type # Index model fields by adding field definitions. # # Some examples: # # fields :foo, :bar # field :timestamp, type: :date # field :category, type: :term # field :complex, transform: -> { "#{property_1}/#{property_2}" } # field :custom # # def custom # "foobar" # end # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elastic-rails-0.5.0 | lib/generators/elastic/templates/index.rb |