In Elastic Search a field is defined as boolean. The data to fill it comes directly from MySQL. This gives an error because Elastic does not accept 0 and 1 as booleans. Can I have MySQL return false/true instead, because I do not want to manipulate the data in PHP first.
I have seen solutions like:
IF(field_name, 'true', 'false') AS field_name
This however returns a string and not a boolean.
Is there a solutions for this?