Interface SearchQuerySelectStep<N extends SearchQueryOptionsStep<?,​E,​LOS,​?,​?>,​R,​E,​LOS,​PJF extends SearchProjectionFactory<R,​E>,​PDF extends SearchPredicateFactory>

    • Method Detail

      • selectEntity

        SearchQueryWhereStep<?,​E,​LOS,​?> selectEntity()
        Select the entity was originally indexed as a representation of the search hit for each matching document.

        The entity will be loaded directly from its original source (relational database, ...).

        Returns:
        The next step.
        See Also:
        SearchQueryWhereStep
      • selectEntityReference

        SearchQueryWhereStep<?,​R,​LOS,​?> selectEntityReference()
        Select a reference to the entity that was originally indexed as a representation of the search hit for each matching document.
        Returns:
        The next step.
        See Also:
        SearchQueryWhereStep
      • select

        <P> SearchQueryWhereStep<?,​P,​LOS,​?> select​(Function<? super PJF,​? extends ProjectionFinalStep<P>> projectionContributor)
        Select a given projection as a representation of the search hit for each matching document.
        Type Parameters:
        P - The resulting type of the projection.
        Parameters:
        projectionContributor - A function that will use the factory passed in parameter to create a projection, returning the final step in the projection DSL. Should generally be a lambda expression.
        Returns:
        The next step.
        See Also:
        SearchQueryWhereStep
      • extension

        <T> T extension​(SearchQueryDslExtension<T,​R,​E,​LOS> extension)
        Extend the current DSL step with the given extension, resulting in an extended step offering more query options.
        Type Parameters:
        T - The type of DSL step provided by the extension.
        Parameters:
        extension - The extension to the query DSL.
        Returns:
        The extended DSL step.
        Throws:
        SearchException - If the extension cannot be applied (wrong underlying backend, ...).