Interface Search
- All Superinterfaces:
Component,ComponentExporter
Defines the
Search Sling Model used for the /apps/core/wcm/components/search component.- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the configuration policy property that defines the maximal number of results fetched by a search request.static final StringName of the resource / configuration policy property that defines the site's search root from which to search.static final StringName of the configuration policy property that defines the minimum length of the search term to start the search. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull StringRelative path of the search component in the current page.default intThe maximal number of results fetched by a search request.default @NotNull StringGets the path of the localized search root.default intThe minimum length of the search term to start the search.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
Field Details
-
PN_SEARCH_ROOT
Name of the resource / configuration policy property that defines the site's search root from which to search. The property should provide a String value.- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
- See Also:
-
PN_SEARCH_TERM_MINIMUM_LENGTH
Name of the configuration policy property that defines the minimum length of the search term to start the search.- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
- See Also:
-
PN_RESULTS_SIZE
Name of the configuration policy property that defines the maximal number of results fetched by a search request.- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
- See Also:
-
-
Method Details
-
getResultsSize
default int getResultsSize()The maximal number of results fetched by a search request.- Returns:
- number of results
- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
-
getSearchTermMinimumLength
default int getSearchTermMinimumLength()The minimum length of the search term to start the search.- Returns:
- minimum length of the search term
- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
-
getRelativePath
Relative path of the search component in the current page.- Returns:
- the relative path of search inside the current page
- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
-
getSearchRootPagePath
Gets the path of the localized search root.- Returns:
- The search root path.
- Since:
- com.adobe.cq.wcm.core.components.models 12.17.0
-