class IndexSearchRestController extends HerdBaseController {

    @RequestMapping(value = "/indexSearch", method = POST, consumes = {"application/xml", "application/json"})
    @Secured(FN_INDEX_SEARCH_POST)
    public IndexSearchResponse indexSearch(@RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields,
        @RequestParam(value = "match", required = false, defaultValue = "") Set<String> match, @RequestBody IndexSearchRequest request)
    {
        return indexSearchService.indexSearch(request, fields, match);
    }

}