Class BroadleafSearchController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.catalog.AbstractCatalogController
org.broadleafcommerce.core.web.controller.catalog.BroadleafSearchController
Handles searching the catalog for a given search term. Will apply product search criteria
such as filters, sorts, and pagination if applicable
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static Stringprotected static Stringprotected ExploitProtectionServiceprotected static Stringprotected SearchFacetDTOServiceprotected static Stringprotected static Stringprotected static Stringprotected SearchRedirectServiceprotected SearchServiceprotected static StringFields inherited from class org.broadleafcommerce.core.web.controller.catalog.AbstractCatalogController
catalogService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchServicesearch(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String query) protected voidMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
searchView
-
PRODUCTS_ATTRIBUTE_NAME
-
FACETS_ATTRIBUTE_NAME
-
PRODUCT_SEARCH_RESULT_ATTRIBUTE_NAME
-
ACTIVE_FACETS_ATTRIBUTE_NAME
-
ORIGINAL_QUERY_ATTRIBUTE_NAME
-
ALL_PRODUCTS_ATTRIBUTE_NAME
-
ALL_SKUS_ATTRIBUTE_NAME
-
searchService
-
exploitProtectionService
-
facetService
-
searchRedirectService
-
-
Constructor Details
-
BroadleafSearchController
public BroadleafSearchController()
-
-
Method Details
-
search
public String search(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String query) throws jakarta.servlet.ServletException, IOException, ServiceException - Throws:
jakarta.servlet.ServletExceptionIOExceptionServiceException
-
getSearchView
-
updateQueryRequestAttribute
-
getSearchService
-