# Boolean fields are not indexed after upgrade to 6.8.7 from 5.6.16

**URL:** <https://discuss.elastic.co/t/boolean-fields-are-not-indexed-after-upgrade-to-6-8-7-from-5-6-16/223534>\
**Category:** Elasticsearch\
**Created:** [March 13, 2020, 3:21pm UTC](https://discuss.elastic.co/t/boolean-fields-are-not-indexed-after-upgrade-to-6-8-7-from-5-6-16/223534 "2020-03-13T15:21:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![santhoshpt](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@santhoshpt](https://discuss.elastic.co/u/santhoshpt)\
**Post date:** [March 13, 2020, 3:21pm UTC](https://discuss.elastic.co/t/boolean-fields-are-not-indexed-after-upgrade-to-6-8-7-from-5-6-16/223534/1 "2020-03-13T15:21:39Z")

</div>

I'm trying to upgrade the org.elasticsearch:elasticsearch to 6.8.7 from 5.6.16 as part of spring boot upgrade. When trying to create index with static mappings, I have noticed no information is stored for the boolean fields in the index.

Is there any changes done how the mappings declared for boolean fields?

Using the ElasticsearchTemplate.index(IndexQuery), where the IndexQuery is built with an document object having some boolean fields

---

<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:** [March 14, 2020, 9:13pm UTC](https://discuss.elastic.co/t/boolean-fields-are-not-indexed-after-upgrade-to-6-8-7-from-5-6-16/223534/2 "2020-03-14T21:13:11Z")

</div>

Depending on how you represent boolean values [this might be relevant](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/breaking-changes-6.0.html#_coercion_of_boolean_fields).

---

<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:** [April 11, 2020, 9:13pm UTC](https://discuss.elastic.co/t/boolean-fields-are-not-indexed-after-upgrade-to-6-8-7-from-5-6-16/223534/3 "2020-04-11T21:13:13Z")

</div>

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