client.php file in elasticsearch has a bug in search function