# How to execute exists query for a enabled false property fields

**URL:** <https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [January 21, 2023, 2:54pm UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652 "2023-01-21T14:54:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sriteja\_chebrolu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriteja_chebrolu/32/116088_2.png) [@sriteja\_chebrolu](https://discuss.elastic.co/u/sriteja_chebrolu)\
**Post date:** [January 21, 2023, 2:54pm UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/1 "2023-01-21T14:54:19Z")

</div>

How to execute exists query for a enabled false property fields

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 21, 2023, 3:39pm UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/2 "2023-01-21T15:39:39Z")

</div>

Hi @sriteja_chebrolu

It is unclear what exactly you mean can you please provide the exact mapping fit the field your are interested in.

Also what version are you on?

---

<div class="post-metadata">

**Author:** ![sriteja\_chebrolu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriteja_chebrolu/32/116088_2.png) [@sriteja\_chebrolu](https://discuss.elastic.co/u/sriteja_chebrolu)\
**Post date:** [January 22, 2023, 3:13pm UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/3 "2023-01-22T15:13:30Z")

</div>

Hi @stephenb

properties" : {  
"summary" : {  
"type" : "object",  
"enabled" : false  
}  
}  
This is my mapping of the field summary, it is enabled false.  
Is it possible to execute Exists query on this field?  
If yes please provide the steps

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 22, 2023, 3:21pm UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/4 "2023-01-22T15:21:59Z")

</div>

Which version of Elasticsearch are you using?

Fields within this object are not indexed at all, so can not be queried directly. One way to possibly get around this might be to use a [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/runtime-mapping-fields.html) that processes the source, but whether this is possible or not might depend on the version you are using.

---

<div class="post-metadata">

**Author:** ![sriteja\_chebrolu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriteja_chebrolu/32/116088_2.png) [@sriteja\_chebrolu](https://discuss.elastic.co/u/sriteja_chebrolu)\
**Post date:** [January 23, 2023, 5:25am UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/5 "2023-01-23T05:25:41Z")

</div>

My Elasticsearch version: 7.17

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 23, 2023, 6:44am UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/6 "2023-01-23T06:44:27Z")

</div>

Then I it might be possible, although I have not myself used it this way. Have a look at the docs [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/runtime.html).

---

<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:** [February 20, 2023, 6:45am UTC](https://discuss.elastic.co/t/how-to-execute-exists-query-for-a-enabled-false-property-fields/323652/7 "2023-02-20T06:45:13Z")

</div>

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