# Why tags has different behavior in version 6.8 and 7.10

**URL:** <https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218>\
**Category:** Elasticsearch\
**Created:** [December 10, 2020, 5:29am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218 "2020-12-10T05:29:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmitC](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AmitC](https://discuss.elastic.co/u/AmitC)\
**Post date:** [December 10, 2020, 5:29am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218/1 "2020-12-10T05:29:42Z")

</div>

When I inserted below json in 6.8 and 7.10

```
        PUT zipkin-span-2020-12-11/_doc/123
    {
        "traceId": "6ba4cc20cc46a65b",
        "duration": 1665151,
        "remoteEndpoint": {
          "ipv4": "127.0.0.1",
          "port": 45036
        },
        "localEndpoint": {
          "serviceName": "einvoice-client",
          "ipv4": "172.31.0.235"
        },
        "timestamp_millis": 1607516558771,
        "kind": "SERVER",
        "name": "post /v1.03/invoice",
        "id": "6ba4cc20cc46a65b",
        "timestamp": 1607516558771120,
        "tags": {
          "gstin": "abc123",
          "http.method": "POST",
          "http.path": "/einvoice/v1.03/invoice",
          "mvc.controller.class": "EInvoiceController_V1_03",
          "mvc.controller.method": "generateEInvoice"
        }
      }

```

in 6.8, I can group data by tags.gstin(see below image mapping) but not in 7.10.

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58c7fa40328f1f051d74318db5689cd5935aa8c0.png)

in 7.10, tags is considered as json object not as mapping you see in above image.

Can any tell me why different behaviour in both version?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 10, 2020, 5:33am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218/2 "2020-12-10T05:33:51Z")

</div>

Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

What is the mapping in 7.10, can you post it?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 10, 2020, 6:02am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218/3 "2020-12-10T06:02:27Z")

</div>

> [@AmitC](#):
>
> in 6.8, I can group data by tags.gstin(see below image mapping) but not in 7.10.

Why? What is the message? What is the query?  
What are the mappings in both case?

---

<div class="post-metadata">

**Author:** ![AmitC](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AmitC](https://discuss.elastic.co/u/AmitC)\
**Post date:** [December 10, 2020, 7:19am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218/4 "2020-12-10T07:19:38Z")

</div>

Sure I will put text instead if Image.

I think this problem with Zipkin. When Zipkin stores the data it create tags asObject type in both the version.

Here is the mapping of zipkin

```
    {
      "zipkin:span-2020-12-10" : {
        "aliases" : { },
        "mappings" : {
          "span" : {
            "_source" : {
              "excludes" : [
                "_q"
              ]
            },
            "dynamic_templates" : [
              {
                "strings" : {
                  "match" : "*",
                  "match_mapping_type" : "string",
                  "mapping" : {
                    "ignore_above" : 256,
                    "norms" : false,
                    "type" : "keyword"
                  }
                }
              }
            ],
            "properties" : {
              "_q" : {
                "type" : "keyword"
              },
              "annotations" : {
                "type" : "object",
                "enabled" : false
              },
              "duration" : {
                "type" : "long"
              },
              "id" : {
                "type" : "keyword",
                "ignore_above" : 256
              },
              "kind" : {
                "type" : "keyword",
                "ignore_above" : 256
              },
              "localEndpoint" : {
                "dynamic" : "false",
                "properties" : {
                  "serviceName" : {
                    "type" : "keyword"
                  }
                }
              },
              "name" : {
                "type" : "keyword"
              },
              "parentId" : {
                "type" : "keyword",
                "ignore_above" : 256
              },
              "remoteEndpoint" : {
                "dynamic" : "false",
                "properties" : {
                  "serviceName" : {
                    "type" : "keyword"
                  }
                }
              },
              "shared" : {
                "type" : "boolean"
              },
              "tags" : {
                "type" : "object",
                "enabled" : false
              },
              "timestamp" : {
                "type" : "long"
              },
              "timestamp_millis" : {
                "type" : "date",
                "format" : "epoch_millis"
              },
              "traceId" : {
                "type" : "keyword"
              }
            }
          }
        },
        "settings" : {
          "index" : {
            "number_of_shards" : "5",
            "provided_name" : "zipkin:span-2020-12-10",
            "mapper" : {
              "dynamic" : "false"
            },
            "creation_date" : "1607580612985",
            "requests" : {
              "cache" : {
                "enable" : "true"
              }
            },
            "number_of_replicas" : "1",
            "uuid" : "MLmVLPouTeupSsBgRK5ebg",
            "version" : {
              "created" : "6080099"
            }
          }
        }
      }
    }

```

Can you tell me how we can resolve this?

---

<div class="post-metadata">

**Author:** ![AmitC](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AmitC](https://discuss.elastic.co/u/AmitC)\
**Post date:** [December 10, 2020, 7:21am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218/5 "2020-12-10T07:21:05Z")

</div>

Please check my above comment

---

<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:** [January 7, 2021, 7:21am UTC](https://discuss.elastic.co/t/why-tags-has-different-behavior-in-version-6-8-and-7-10/258218/6 "2021-01-07T07:21:05Z")

</div>

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