renamed search.php to query.php to make it work with version 1.1.1 of json-api