# Elasticsearch exception \[type=json\_parse\_exception, reason=Current token (VALUE\_NUMBER\_INT) not of boolean type

**URL:** <https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [October 20, 2020, 7:13pm UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728 "2020-10-20T19:13:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_Di\_Lembo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giovanni_di_lembo/32/45714_2.png) [@Giovanni\_Di\_Lembo](https://discuss.elastic.co/u/Giovanni_Di_Lembo)\
**Post date:** [October 20, 2020, 7:13pm UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/1 "2020-10-20T19:13:26Z")

</div>

Hi all and sorry for my poor english.  
I'm using docker [docker.elastic.co/elasticsearch/elasticsearch:6.2.1](http://docker.elastic.co/elasticsearch/elasticsearch:6.2.1) paired with spring data elasticsearch. The issue does not involve spring for sure.  
When I try any kind of operation on docker elastic I got

**lasticsearch exception [type=json\_parse\_exception, reason=Current token (VALUE\_NUMBER\_INT) not of boolean type**

My entity is completely defined as text fields. Please helps

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2020, 8:36pm UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/2 "2020-10-20T20:36:48Z")

</div>

Could you provide a sample project, classes... which could help to understand what you are doing?

Also please use a more recent version. At least the latest 6.8 or better 7.9.2.

---

<div class="post-metadata">

**Author:** ![Giovanni\_Di\_Lembo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giovanni_di_lembo/32/45714_2.png) [@Giovanni\_Di\_Lembo](https://discuss.elastic.co/u/Giovanni_Di_Lembo)\
**Post date:** [October 21, 2020, 9:02am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/3 "2020-10-21T09:02:33Z")

</div>

here my demo git

git clone [https://gdilembo75@bitbucket.org/gdilembo75/demo.git](https://gdilembo75@bitbucket.org/gdilembo75/demo.git)

Try to run mvn clean install and test will fail

---

<div class="post-metadata">

**Author:** ![Giovanni\_Di\_Lembo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giovanni_di_lembo/32/45714_2.png) [@Giovanni\_Di\_Lembo](https://discuss.elastic.co/u/Giovanni_Di_Lembo)\
**Post date:** [October 22, 2020, 6:02am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/4 "2020-10-22T06:02:12Z")

</div>

please help. It's an issue using Spring repository, any operations fails with that error

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 22, 2020, 7:02am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/5 "2020-10-22T07:02:16Z")

</div>

Please be patient in waiting for responses to your question and refrain from pinging multiple times asking for a response or opening multiple topics for the same question. This is a community forum, it may take time for someone to reply to your question. For more information please refer to the [Community Code of Conduct](https://www.elastic.co/community/codeofconduct) specifically the section "Be patient". Also, please refrain from pinging folks directly, this is a forum and anyone that participates might be able to assist you.

If you are in need of a service with an SLA that covers response times for questions then you may want to consider talking to us about a [subscription](https://www.elastic.co/subscriptions).

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

That said, I'm planning to look at this today if no urgency falls down.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 22, 2020, 8:21am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/6 "2020-10-22T08:21:36Z")

</div>

I gave a first look.

When using springboot with elasticsearch, you need to be explicit with some transitive dependencies as SpringBoot declares a version 6.4...

Basically you can put this in your `pom.xml`:

```auto
<properties>
  <elasticsearch.version>7.9.2<elasticsearch.version>
</properties>

```

See documentation here: [https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-customize-dependency-versions](https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-customize-dependency-versions)

I'd not start a new project with 6.8.12 but I'd prefer 7.9.2.

Could you update your project so you are using all the most recent versions?

---

<div class="post-metadata">

**Author:** ![Giovanni\_Di\_Lembo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giovanni_di_lembo/32/45714_2.png) [@Giovanni\_Di\_Lembo](https://discuss.elastic.co/u/Giovanni_Di_Lembo)\
**Post date:** [October 22, 2020, 9:46am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/7 "2020-10-22T09:46:36Z")

</div>

it works

---

<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:** [November 19, 2020, 9:46am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-json-parse-exception-reason-current-token-value-number-int-not-of-boolean-type/252728/8 "2020-11-19T09:46:39Z")

</div>

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