diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentBooleanFieldMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentBooleanFieldMapper.java index 9f377290b8c..4dc1a891760 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentBooleanFieldMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentBooleanFieldMapper.java @@ -116,6 +116,10 @@ public class XContentBooleanFieldMapper extends XContentFieldMapper { this.nullValue = nullValue; } + @Override public boolean useFieldQueryWithQueryString() { + return true; + } + @Override public Boolean value(Fieldable field) { return field.stringValue().charAt(0) == 'T' ? Boolean.TRUE : Boolean.FALSE; }