Code search API support

Fix code search API query format and arguments