# Elasticsearch 6.8 ignores my field mappings

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-8-ignores-my-field-mappings/262816>\
**Category:** Elasticsearch\
**Created:** [February 1, 2021, 10:10am UTC](https://discuss.elastic.co/t/elasticsearch-6-8-ignores-my-field-mappings/262816 "2021-02-01T10:10:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![logben](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@logben](https://discuss.elastic.co/u/logben)\
**Post date:** [February 1, 2021, 10:10am UTC](https://discuss.elastic.co/t/elasticsearch-6-8-ignores-my-field-mappings/262816/1 "2021-02-01T10:10:06Z")

</div>

Hello!

I have field mappings for an index like

```auto
{ "index_patterns": ["logstash-iis2-*"],
  "version":100,
  "settings":{
    "number_of_replicas":0,
    "number_of_shards":1,
    "index.refresh_interval":"30s"
  },
  "mappings":{
   "doc":{
       "dynamic": false,
       "date_detection": false,
       "properties":{
         "@timestamp":{
          "type":"date"
          },
        "@version":{
          "type":"keyword"
          },
        "date":{
         "type":"date",
         "format": "yyyy-MM-dd"
        },
        "time":{
         "type":"date",
         "format": "HH:mm:ss"
        },
        "server-ip":{
         "type":"ip",
          "fields":{
            "keyword":{
              "type":"keyword"
            }
          }
        }, ...

```

and get a mapping without the correct number of replicas (1 instead of 0) and also the actual field types do not match my mapping configuration, for example

```auto
"server-ip": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }, ...

```

What's wrong here? Thanks in advance!

Cheers, Ben

---

<div class="post-metadata">

**Author:** ![logben](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@logben](https://discuss.elastic.co/u/logben)\
**Post date:** [February 3, 2021, 8:01am UTC](https://discuss.elastic.co/t/elasticsearch-6-8-ignores-my-field-mappings/262816/2 "2021-02-03T08:01:00Z")

</div>

No idea out there?

---

<div class="post-metadata">

**Author:** ![logben](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@logben](https://discuss.elastic.co/u/logben)\
**Post date:** [February 9, 2021, 3:03pm UTC](https://discuss.elastic.co/t/elasticsearch-6-8-ignores-my-field-mappings/262816/3 "2021-02-09T15:03:57Z")

</div>

Really, does nobody has an idea what's going on here? 😑

---

<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:** [March 9, 2021, 3:04pm UTC](https://discuss.elastic.co/t/elasticsearch-6-8-ignores-my-field-mappings/262816/4 "2021-03-09T15:04:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
