package com.hp.autonomy.frontend.find.search;

public class DocumentsController {



}

@@ -44,44 +44,786 @@
 h;%0A%0A
-public class DocumentsController %7B%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0A%0Aimport java.util.List;%0A%0A@Controller%0A@RequestMapping(%22/search/query-text-index%22)%0Apublic class DocumentsController %7B%0A%0A    @Autowired%0A    private DocumentsService documentsService;%0A%0A    @RequestMapping(value = %22/text/%7Btext%7D%22, method = RequestMethod.GET)%0A    @ResponseBody%0A    public List%3CDocument%3E query(%0A        @PathVariable(%22text%22) final String text%0A    ) %7B%0A        return documentsService.queryTextIndex(text);%0A    %7D
 %0A%0A%7D%0A

Implement DocumentsController.