Added java examples for search api