# Object field vs Individual field

**URL:** <https://discuss.elastic.co/t/object-field-vs-individual-field/260527>\
**Category:** Elasticsearch\
**Created:** [January 8, 2021, 10:01am UTC](https://discuss.elastic.co/t/object-field-vs-individual-field/260527 "2021-01-08T10:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naghaveer\_r](https://avatars.discourse-cdn.com/v4/letter/n/43a26b/32.png) [@naghaveer\_r](https://discuss.elastic.co/u/naghaveer_r)\
**Post date:** [January 8, 2021, 10:01am UTC](https://discuss.elastic.co/t/object-field-vs-individual-field/260527/1 "2021-01-08T10:01:06Z")

</div>

I have two fields "support.agent" and "support.resolution".  
If I can map these field as an Object type, I'll be able to fetch them together and also provides more readability

```auto
"support": {
         "properties": {
            "agent": {
               "type": "keyword"
            },
            "resolution": {
               "type": "keyword"
            }
         }
      }

```

What if I map them as two individual fields, something like this

```auto
"support:agent": {
  "type": "keyword"
},
"support:resolution": {
  "type": "keyword"
}

```

Is there any performance difference in using object field-type vs individual fields?

---

<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:** [January 11, 2021, 12:22am UTC](https://discuss.elastic.co/t/object-field-vs-individual-field/260527/2 "2021-01-11T00:22:19Z")

</div>

I'm not sure we performance test down to that level. I'd suggest you try it and see how it works for you.

---

<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:** [February 8, 2021, 12:22am UTC](https://discuss.elastic.co/t/object-field-vs-individual-field/260527/3 "2021-02-08T00:22:25Z")

</div>

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