# Date model for elastic search document

**URL:** <https://discuss.elastic.co/t/date-model-for-elastic-search-document/23303>\
**Category:** Elasticsearch\
**Created:** [April 18, 2015, 5:33am UTC](https://discuss.elastic.co/t/date-model-for-elastic-search-document/23303 "2015-04-18T05:33:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [April 18, 2015, 5:33am UTC](https://discuss.elastic.co/t/date-model-for-elastic-search-document/23303/1 "2015-04-18T05:33:08Z")

</div>

Can some one help me in designing /making me understanding how should I  
design class/json structure ?

I have document that can have some standard set of fields which I know but  
I have dynamic fields (user can create his own fields )

What should be the document structure /json structure for the document in  
this case ?

For example :

I have document with known /standard fields like file name ,author and all

but this document can also dynamic set of fields like "Field1","Field2" and  
"Field3"

Regards,  
Nagaraju

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f5a87e4c-9cac-441c-9cb3-4e0dbf32528d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f5a87e4c-9cac-441c-9cb3-4e0dbf32528d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [April 19, 2015, 2:42am UTC](https://discuss.elastic.co/t/date-model-for-elastic-search-document/23303/2 "2015-04-19T02:42:09Z")

</div>

Look at nested docs, where you have the static part which is the parent,  
and then any dynamic data in the child.

> **[Nested Objects | Elasticsearch: The Definitive Guide \[2.x\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/guide/current/nested-objects.html)**

On 18 April 2015 at 15:33, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:

> Can some one help me in designing /making me understanding how should I  
> design class/json structure ?
> 
> I have document that can have some standard set of fields which I know but  
> I have dynamic fields (user can create his own fields )
> 
> What should be the document structure /json structure for the document in  
> this case ?
> 
> For example :
> 
> I have document with known /standard fields like file name ,author and all
> 
> but this document can also dynamic set of fields like "Field1","Field2"  
> and "Field3"
> 
> Regards,  
> Nagaraju
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/f5a87e4c-9cac-441c-9cb3-4e0dbf32528d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f5a87e4c-9cac-441c-9cb3-4e0dbf32528d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/f5a87e4c-9cac-441c-9cb3-4e0dbf32528d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/f5a87e4c-9cac-441c-9cb3-4e0dbf32528d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X\_mcdbVFPAB4UfKKzpj\_B2bRQ-dox-i3eOC9OBfp8NzoA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_mcdbVFPAB4UfKKzpj_B2bRQ-dox-i3eOC9OBfp8NzoA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:18am UTC](https://discuss.elastic.co/t/date-model-for-elastic-search-document/23303/3 "2017-07-06T00:18:52Z")

</div>

Closed on July 6, 2017, 12:18am UTC


