# Shared field for all the documents

**URL:** <https://discuss.elastic.co/t/shared-field-for-all-the-documents/120010>\
**Category:** Elasticsearch\
**Created:** [February 15, 2018, 2:40pm UTC](https://discuss.elastic.co/t/shared-field-for-all-the-documents/120010 "2018-02-15T14:40:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hrachya\_Yeghishyan](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hrachya\_Yeghishyan](https://discuss.elastic.co/u/Hrachya_Yeghishyan)\
**Post date:** [February 15, 2018, 2:40pm UTC](https://discuss.elastic.co/t/shared-field-for-all-the-documents/120010/1 "2018-02-15T14:40:57Z")

</div>

Hi all,

I'd like to know if it is possible to have a field, which would be available for all the documents inside one index and having the same type? I understand that there could be an obvious method (though utterly unefficient) in which case we could have a certain field for all the documents and update constantly that field for all the documents. But as far as efficiency is considered also, it would be great to have a field "outside" all the documents that would also be possible to use as a filter. Does anyone know if there is actually such a feature in ElasticSearch or something close to that?

---

<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:** [March 15, 2018, 2:41pm UTC](https://discuss.elastic.co/t/shared-field-for-all-the-documents/120010/2 "2018-03-15T14:41:00Z")

</div>

Closed on March 15, 2018, 2:41pm UTC

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