Package com.viglet.turing.api.sn.search
Class TurSNSiteSearchAPI
Object
TurSNSiteSearchAPI
@RestController
@RequestMapping("/api/sn/{siteName}/search")
public class TurSNSiteSearchAPI
extends Object
-
Constructor Summary
ConstructorDescriptionTurSNSiteSearchAPI
(TurSNSearchProcess turSNSearchProcess, TurSNSiteRepository turSNSiteRepository, TurSNSiteLocaleRepository turSNSiteLocaleRepository, TurSNSiteSearchCachedAPI turSNSiteSearchCachedAPI) -
Method Summary
Modifier and TypeMethodDescriptionturSNSiteSearchLatestImpersonate
(String siteName, Integer rows, String locale, Optional<TurSNSearchLatestRequestBean> turSNSearchLatestRequestBean, Principal principal) turSNSiteSearchLocale
(String siteName) ResponseEntity
<TurSNSiteSearchBean> turSNSiteSearchSelectGet
(String siteName, String q, Integer currentPage, List<String> filterQueriesDefault, List<String> filterQueriesAnd, List<String> filterQueriesOr, TurSNFilterQueryOperator fqOperator, String sort, Integer rows, String group, Integer autoCorrectionDisabled, String localeRequest, HttpServletRequest request) ResponseEntity
<TurSNSiteSearchBean> turSNSiteSearchSelectPost
(String siteName, String q, Integer currentPage, List<String> filterQueriesDefault, List<String> filterQueriesAnd, List<String> filterQueriesOr, TurSNFilterQueryOperator fqOperator, String sort, Integer rows, String group, Integer autoCorrectionDisabled, String localeRequest, TurSNSitePostParamsBean turSNSitePostParamsBean, Principal principal, HttpServletRequest request)
-
Constructor Details
-
TurSNSiteSearchAPI
@Inject public TurSNSiteSearchAPI(TurSNSearchProcess turSNSearchProcess, TurSNSiteRepository turSNSiteRepository, TurSNSiteLocaleRepository turSNSiteLocaleRepository, TurSNSiteSearchCachedAPI turSNSiteSearchCachedAPI)
-
-
Method Details
-
turSNSiteSearchSelectGet
@GetMapping public ResponseEntity<TurSNSiteSearchBean> turSNSiteSearchSelectGet(@PathVariable String siteName, @RequestParam(required=false,name="q") String q, @RequestParam(required=false,name="p") Integer currentPage, @RequestParam(required=false,name="fq[]") List<String> filterQueriesDefault, @RequestParam(required=false,name="fq.and[]") List<String> filterQueriesAnd, @RequestParam(required=false,name="fq.or[]") List<String> filterQueriesOr, @RequestParam(required=false,name="fq.op",defaultValue="NONE") TurSNFilterQueryOperator fqOperator, @RequestParam(required=false,name="sort") String sort, @RequestParam(required=false,name="rows",defaultValue="10") Integer rows, @RequestParam(required=false,name="group") String group, @RequestParam(required=false,name="nfpr",defaultValue="0") Integer autoCorrectionDisabled, @RequestParam(required=false,name="_setlocale") String localeRequest, HttpServletRequest request) -
turSNSiteSearchSelectPost
@PostMapping public ResponseEntity<TurSNSiteSearchBean> turSNSiteSearchSelectPost(@PathVariable String siteName, @RequestParam(required=false,name="q") String q, @RequestParam(required=false,name="p") Integer currentPage, @RequestParam(required=false,name="fq[]") List<String> filterQueriesDefault, @RequestParam(required=false,name="fq.and[]") List<String> filterQueriesAnd, @RequestParam(required=false,name="fq.or[]") List<String> filterQueriesOr, @RequestParam(required=false,name="fq.op",defaultValue="NONE") TurSNFilterQueryOperator fqOperator, @RequestParam(required=false,name="sort") String sort, @RequestParam(required=false,name="rows",defaultValue="10") Integer rows, @RequestParam(required=false,name="group") String group, @RequestParam(required=false,name="nfpr",defaultValue="0") Integer autoCorrectionDisabled, @RequestParam(required=false,name="_setlocale") String localeRequest, @RequestBody TurSNSitePostParamsBean turSNSitePostParamsBean, Principal principal, HttpServletRequest request) -
turSNSiteSearchLocale
@GetMapping("locales") public List<TurSNSiteLocaleBean> turSNSiteSearchLocale(@PathVariable String siteName) -
turSNSiteSearchLatestImpersonate
@PostMapping("latest") public ResponseEntity<List<String>> turSNSiteSearchLatestImpersonate(@PathVariable String siteName, @RequestParam(required=false,name="rows",defaultValue="5") Integer rows, @RequestParam(name="_setlocale") String locale, @RequestBody Optional<TurSNSearchLatestRequestBean> turSNSearchLatestRequestBean, Principal principal)
-