# "fields" only contain dates

**URL:** <https://discuss.elastic.co/t/fields-only-contain-dates/208050>\
**Category:** Elasticsearch\
**Created:** [November 15, 2019, 10:46am UTC](https://discuss.elastic.co/t/fields-only-contain-dates/208050 "2019-11-15T10:46:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grompa](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@Grompa](https://discuss.elastic.co/u/Grompa)\
**Post date:** [November 15, 2019, 10:46am UTC](https://discuss.elastic.co/t/fields-only-contain-dates/208050/1 "2019-11-15T10:46:34Z")

</div>

Hello, I am trying to build an application and I am struggling to understand how "fields" and "\_source" works.  
When I view my documents in Kibana, I noticed that most fields are not contained in the "fields"-element (json). Actually only the dates appear in this element. All the other fields are only contained in the \_source. Also I did not used arrays to store the dates. In the source they are displayed normally and in the fields they are displayed in brackets.  
I added all the fields the same way via the Java High Level REST Client. They all are simply added via an XContentBuilder. What might be the reason they are not all contained the same way in "fields"?

---

<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:** [December 13, 2019, 10:46am UTC](https://discuss.elastic.co/t/fields-only-contain-dates/208050/2 "2019-12-13T10:46:35Z")

</div>

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