# Can't parse boolean value

**URL:** <https://discuss.elastic.co/t/cant-parse-boolean-value/215273>\
**Category:** Elasticsearch\
**Created:** [January 16, 2020, 9:01am UTC](https://discuss.elastic.co/t/cant-parse-boolean-value/215273 "2020-01-16T09:01:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [January 16, 2020, 9:59am UTC](https://discuss.elastic.co/t/cant-parse-boolean-value/215273/2 "2020-01-16T09:59:16Z")

</div>

> [@Valentin\_Hirson](#):
>
> Have you got an idea ?

As explained in [this post](https://discuss.elastic.co/t/reindex-from-2-4-to-6-5-failed-on-boolean-type/158846), since version 6.0 you can no longer use "1" and "0" as Boolean values, only "true" and "false". Because you're running an old version, 5.3.2, it allows you to use 1 and 0 but when you try to index those as Boolean values to the new cluster, with version 6.8.5, it fails.

To solve this you will either have to reindex inside the old cluster first, replacing 0 -\> false and 1 -\> true, or use an [ingest pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/ingest-processors.html) to replace those values while you index into the new cluster.

Good luck!

---

_[View the full topic](https://discuss.elastic.co/t/cant-parse-boolean-value/215273)._
