# No boolean field value translation in facet results

**URL:** <https://discuss.elastic.co/t/no-boolean-field-value-translation-in-facet-results/9888>\
**Category:** Elasticsearch\
**Created:** [November 29, 2012, 2:41pm UTC](https://discuss.elastic.co/t/no-boolean-field-value-translation-in-facet-results/9888 "2012-11-29T14:41:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lennart\_Koopmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lennart_koopmann/32/2445_2.png) [@Lennart\_Koopmann](https://discuss.elastic.co/u/Lennart_Koopmann)\
**Post date:** [November 29, 2012, 2:41pm UTC](https://discuss.elastic.co/t/no-boolean-field-value-translation-in-facet-results/9888/1 "2012-11-29T14:41:53Z")

</div>

Hey everybody,

if you have a boolean field in your document and search for the  
document you get the field value returned as true or false - all good.  
In a term facet though, you get the value returned as "T" or "F" - The  
internal translation to true/false is not happening there. Is this a  
bug or on purpose?

I am not using any special mapping, only the dynamicly created one:

test: {  
things: {  
properties: {  
foo: { type: boolean }  
}  
}  
}

Thanks for any help.

Cheers,  
Lennart

--

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [December 4, 2012, 11:40am UTC](https://discuss.elastic.co/t/no-boolean-field-value-translation-in-facet-results/9888/2 "2012-12-04T11:40:04Z")

</div>

> if you have a boolean field in your document and search for the  
> document you get the field value returned as true or false - all good.  
> In a term facet though, you get the value returned as "T" or "F" - The  
> internal translation to true/false is not happening there.

Can you submit an issue at GitHub with the demonstration code?

Karel

--

---

<div class="post-metadata">

**Author:** ![Kay\_Ropke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_ropke/32/2424_2.png) [@Kay\_Ropke](https://discuss.elastic.co/u/Kay_Ropke)\
**Post date:** [December 4, 2012, 12:27pm UTC](https://discuss.elastic.co/t/no-boolean-field-value-translation-in-facet-results/9888/3 "2012-12-04T12:27:25Z")

</div>

On Tuesday, December 4, 2012 12:40:04 PM UTC+1, Karel Minařík wrote:

> if you have a boolean field in your document and search for the
> 
> > document you get the field value returned as true or false - all good.  
> > In a term facet though, you get the value returned as "T" or "F" - The  
> > internal translation to true/false is not happening there.
> 
> Can you submit an issue at GitHub with the demonstration code?

for reference: [Facet value of boolean mapped fields should be "true" or "false" · Issue #2462 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2462)

--

---

<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 6, 2017, 3:01am UTC](https://discuss.elastic.co/t/no-boolean-field-value-translation-in-facet-results/9888/4 "2017-07-06T03:01:40Z")

</div>


