# Is there a way to create documents which contain other documents as fields?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-create-documents-which-contain-other-documents-as-fields/88777>\
**Category:** Elasticsearch\
**Created:** [June 9, 2017, 1:17am UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-documents-which-contain-other-documents-as-fields/88777 "2017-06-09T01:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerolomy](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jerolomy](https://discuss.elastic.co/u/jerolomy)\
**Post date:** [June 9, 2017, 1:17am UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-documents-which-contain-other-documents-as-fields/88777/1 "2017-06-09T01:17:51Z")

</div>

I want to make categories searchable. A category can have any number of "regular" documents in it.

My regular documents are not very heavy to search. They have 2 fields with a total of about 100 words. So I was thinking of creating documents which have a type of category and these documents will have a field "meta\_field" which is just a concatenation of all of the documents' fields (or some subset of them) that belong to that category. Is there any standard way of doing something like this? Does what I am suggesting make sense?

---

<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 7, 2017, 1:18am UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-documents-which-contain-other-documents-as-fields/88777/2 "2017-07-07T01:18:15Z")

</div>

Closed on July 7, 2017, 1:18am UTC

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