elasticsearch/elasticsearch — Issue #1735: boolean fields returned as string in a query
Author: jmwilson
Created: 2012-02-24 00:39:19+00:00
State: open

I defined a boolean property in a mapping, and when I do get operation:

http://localhost:9200/index/user/?fields=enabled

the JSON type of field is boolean as I would expect ("enabled": true).

When I do a search operation, requesting that field return in the result, the value is wrapped as a string ("enabled": "true").