lib/Elastica/Transport/AbstractTransport.php
public function sanityzeQueryStringBool(array $query)
    {
        foreach ($query as $key => $value) {
            if (\is_bool($value)) {
                $query[$key] = ($value) ? 'true' : 'false';
            }
        }

        return $query;
    }
public function sanityzeQueryStringBool(array $query)
    {
        foreach ($query as $key => $value) {
            if (\is_bool($value)) {
                $query[$key] = ($value) ? 'true' : 'false';
            }
        }

        return $query;
    }
public function sanityzeQueryStringBool ( array $ query ) { foreach ( $ query as $ key => $ value ) { if ( \ is_bool ( $ value ) ) { $ query [ $ key ] = ( $ value ) ? 'true' : 'false' ; } } return $ query ; }
BOOL values true|false should be sanityzed and passed to Elasticsearch
as string.

@param array $query

@return mixed
BOOL values true|false should be sanityzed and passed to Elasticsearch as string .