This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ApiOperation(value = "Raw search (returns ES response)") | |
| @RequestMapping(value = {"/rs/**"}, method = {RequestMethod.GET, RequestMethod.POST, RequestMethod.HEAD} /*, produces = "text/json" */) | |
| @ResponseStatus(HttpStatus.OK) | |
| //@ResponseBody | |
| public void rawSearch(@RequestBody(required = false) String body, HttpMethod method, HttpServletRequest request, | |
| HttpServletResponse response, HttpEntity<String> httpEntity) throws FairSearchServiceException, IOException, Exception { | |
| String server = "http://localhost:9200/"; | |
| String jsonContent = ""; | |
| URI uri; |