fields: &fields
  keyword:
    type: keyword
    ignore_above: 256
name_fields: &name_fields
  type: text
  copy_to: named
  fields: *fields

mappings:
  _default_:
    properties:
      name:
        properties:
          name: *name_fields
          first: *name_fields
          last: *name_fields
      named:
        type: text
        fields: *fields