Interface Search

All Superinterfaces:
Component, ComponentExporter

public interface Search extends Component
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of the configuration policy property that defines the maximal number of results fetched by a search request.
    static final String
    Name of the resource / configuration policy property that defines the site's search root from which to search.
    static final String
    Name of the configuration policy property that defines the minimum length of the search term to start the search.

    Fields inherited from interface com.adobe.cq.wcm.core.components.models.Component

    PN_ID
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull String
    Relative path of the search component in the current page.
    default int
    The maximal number of results fetched by a search request.
    default @NotNull String
    Gets the path of the localized search root.
    default int
    The 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

      static final String 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

      static final String 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

      static final String 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

      @NotNull default @NotNull String 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

      @NotNull default @NotNull String 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