Class SearchResource

    • Constructor Detail

      • SearchResource

        public SearchResource()
    • Method Detail

      • goToSearchResults

        @Path("/search")
        @GET
        @Produces("text/html")
        public Response goToSearchResults​(@QueryParam("q") @NotNull
                                          String query,
                                          @QueryParam("sourcePageId") @NotNull
                                          String pageId,
                                          @QueryParam("targetInterfaceId") @DefaultValue("lumis.service.search.searchResults")
                                          String interfaceId)
        Redirects the request to the nearest page that contains the search results service interface.

        Uses the given page identifier parameter as the source page, to calculate the nearest search results page.
        The interface identifier parameter represents the interface identifier of the desired search results interface. It defaults to lumis.service.search.searchResults.
        The query parameter is added to the target URL after the base URL is processed (thus, it will not be added to the WebResource calculation).

        The response will be one of:

        Parameters:
        query - the user query.
        pageId - the source page identifier.
        interfaceId - the (optional) search results service interface identifier (defaults to lumis.service.search.searchResults).
        Returns:
        the response of the processing.
        Since:
        9.0.0