# Is multifield feature deprecated?

**URL:** <https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788>\
**Category:** Elasticsearch\
**Created:** [September 29, 2016, 8:27am UTC](https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788 "2016-09-29T08:27:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chang\_Oh\_Heo](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Chang\_Oh\_Heo](https://discuss.elastic.co/u/Chang_Oh_Heo)\
**Post date:** [September 29, 2016, 8:27am UTC](https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788/1 "2016-09-29T08:27:51Z")

</div>

I want to use multified but it doesn`t work in es 2.4.0.

below is my indexing template.

```auto
{
  "state": "open",
  "settings": {
    "index": {
      "creation_date": "1475137438615",
      "refresh_interval": "5s",
      "number_of_shards": "6",
      "number_of_replicas": "1",
      "uuid": "SlFpokMnSrWi5Z7PYuat2A",
      "version": {
        "created": "2030599"
      }
    }
  },
  "mappings": {
    "_default_": {
      "dynamic_templates": [
        {
          "message_field": {
            "mapping": {
              "fielddata": {
                "format": "disabled"
              },
              "index": "analyzed",
              "omit_norms": true,
              "type": "string"
            },
            "match_mapping_type": "string",
            "match": "message"
          }
        },
        {
          "string_fields": {
            "mapping": {
              "fielddata": {
                "format": "disabled"
              },
              "index": "analyzed",
              "omit_norms": true,
              "type": "string",
              "fields": {
                "raw": {
                  "ignore_above": 256,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            },
            "match_mapping_type": "string",
            "match": "*"
          }
        }
      ],
      "_all": {
        "omit_norms": true,
        "enabled": true
      },
      "properties": {
        "@timestamp": {
          "format": "strict_date_optional_time||epoch_millis",
          "type": "date"
        },
        "geoip": {
          "dynamic": "true",
          "properties": {
            "ip": {
              "type": "ip"
            },
            "latitude": {
              "type": "float"
            },
            "location": {
              "type": "geo_point"
            },
            "longitude": {
              "type": "float"
            }
          }
        },
        "@version": {
          "index": "not_analyzed",
          "type": "string"
        }
      }
    },
    "access": {
      "dynamic_templates": [
        {
          "access_dynamci_template": {
            "mapping": {
              "mapping": {
                "type": "string",
                "fields": {
                  "raw": {
                    "ignore_above": 256,
                    "index": "not_analyzed",
                    "type": "string"
                  }
                }
              }
            },
            "match": "*"
          }
        },
        {
          "message_field": {
            "mapping": {
              "fielddata": {
                "format": "disabled"
              },
              "index": "analyzed",
              "omit_norms": true,
              "type": "string"
            },
            "match_mapping_type": "string",
            "match": "message"
          }
        },
        {
          "string_fields": {
            "mapping": {
              "fielddata": {
                "format": "disabled"
              },
              "index": "analyzed",
              "omit_norms": true,
              "type": "string",
              "fields": {
                "raw": {
                  "ignore_above": 256,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            },
            "match_mapping_type": "string",
            "match": "*"
          }
        }
      ],
      "_all": {
        "omit_norms": true,
        "enabled": true
      },
      "properties": {
        "@timestamp": {
          "format": "strict_date_optional_time||epoch_millis",
          "type": "date"
        },
        "geoip": {
          "dynamic": "true",
          "properties": {
            "ip": {
              "type": "ip"
            },
            "latitude": {
              "type": "float"
            },
            "location": {
              "type": "geo_point"
            },
            "longitude": {
              "type": "float"
            }
          }
        },
        "@version": {
          "index": "not_analyzed",
          "type": "string"
        }
      }
    }
  },
  "aliases": []
}

```

but .raw field is not coming.  
es 2.4.0 doesn`t support dot in field name. Is it deprecated that reason?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [September 29, 2016, 9:04am UTC](https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788/2 "2016-09-29T09:04:53Z")

</div>

Multi fields are still supported. Can you provide us with a minimal recreation of the problem (eg. a bash script with curl calls)?

---

<div class="post-metadata">

**Author:** ![Chang\_Oh\_Heo](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Chang\_Oh\_Heo](https://discuss.elastic.co/u/Chang_Oh_Heo)\
**Post date:** [September 29, 2016, 10:46am UTC](https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788/3 "2016-09-29T10:46:10Z")

</div>

I am testing logstash but It is happend when i test raw api. I create script if have a time.  
if i set below, does mulit field should work?

```auto
              "fields": {
                "raw": {
                  "ignore_above": 256,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }

```

---

<div class="post-metadata">

**Author:** ![Chang\_Oh\_Heo](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Chang\_Oh\_Heo](https://discuss.elastic.co/u/Chang_Oh_Heo)\
**Post date:** [September 29, 2016, 1:58pm UTC](https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788/4 "2016-09-29T13:58:36Z")

</div>

I got a answer. Multi fields is working on aggregation only.  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:16pm UTC](https://discuss.elastic.co/t/is-multifield-feature-deprecated/61788/5 "2017-07-05T22:16:06Z")

</div>


