brewster / elastictastic

Object-document mapper and lightweight API adapter for ElasticSearch
MIT License
88 stars 13 forks source link

allow presets for field configurations #13

Closed outoftime closed 12 years ago

outoftime commented 12 years ago

It would be helpful to be able to configure preset field configurations (with a certain type, analyzer, etc.):

presets:
  my_preset:
    type: string
    store: yes
    analyzer: whitespace
    omit_norms: true

And then just refer to them like so:

field :my_field, :preset => :my_preset