Add limit to the retrive service
added execption handling in jsonservice
added search api servlet