# Migration from Elastcsearch 1.\* to 2.\* and boolean types

**URL:** <https://discuss.elastic.co/t/migration-from-elastcsearch-1-to-2-and-boolean-types/48087>\
**Category:** Elasticsearch\
**Created:** [April 21, 2016, 6:26pm UTC](https://discuss.elastic.co/t/migration-from-elastcsearch-1-to-2-and-boolean-types/48087 "2016-04-21T18:26:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yovo\_yovchev](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@yovo\_yovchev](https://discuss.elastic.co/u/yovo_yovchev)\
**Post date:** [April 21, 2016, 6:26pm UTC](https://discuss.elastic.co/t/migration-from-elastcsearch-1-to-2-and-boolean-types/48087/1 "2016-04-21T18:26:05Z")

</div>

I have to migrate elasticsearch 1.3 to 2.\* but the doc suggests that there is some changes with the boolean types: "They have been refactored to use numeric fielddata, with 0 for false and 1 for true". The current documents in the index store the boolean types with "true" and "false". The documentation wasn't clear enough (or I'm misreading it) but should I reindex these values to "0" and "1" before the update or I should do it afterwards.

---

<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:** [July 5, 2017, 10:57pm UTC](https://discuss.elastic.co/t/migration-from-elastcsearch-1-to-2-and-boolean-types/48087/2 "2017-07-05T22:57:11Z")

</div>


