# Dynamically exclude particular field while querying an index

**URL:** <https://discuss.elastic.co/t/dynamically-exclude-particular-field-while-querying-an-index/66528>\
**Category:** Elasticsearch\
**Created:** [November 18, 2016, 11:28am UTC](https://discuss.elastic.co/t/dynamically-exclude-particular-field-while-querying-an-index/66528 "2016-11-18T11:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cm\_a](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cm\_a](https://discuss.elastic.co/u/cm_a)\
**Post date:** [November 18, 2016, 11:28am UTC](https://discuss.elastic.co/t/dynamically-exclude-particular-field-while-querying-an-index/66528/1 "2016-11-18T11:28:26Z")

</div>

Hi,

I have documents in my search index which contains tags field which has information about multiple fields.

I have a requirement wherein for some queries I should be able to exclude this tags field but for some other queries this field should be considered.

Can you please let me know how this can be achieved at the query time.

---

<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 16, 2016, 11:28am UTC](https://discuss.elastic.co/t/dynamically-exclude-particular-field-while-querying-an-index/66528/2 "2016-12-16T11:28:43Z")

</div>

Closed on December 16, 2016, 11:28am UTC

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