Class HighlightProjectionOptionsStepImpl
- java.lang.Object
-
- org.hibernate.search.engine.search.projection.dsl.impl.HighlightProjectionOptionsStepImpl
-
- All Implemented Interfaces:
HighlightProjectionFinalStep,HighlightProjectionOptionsStep,ProjectionFinalStep<List<String>>
public class HighlightProjectionOptionsStepImpl extends Object implements HighlightProjectionOptionsStep, HighlightProjectionFinalStep
-
-
Constructor Summary
Constructors Constructor Description HighlightProjectionOptionsStepImpl(SearchProjectionDslContext<?> dslContext, String fieldPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HighlightProjectionFinalStephighlighter(String highlighterName)Defines a name of a named highlighter to be used by this field projection.SearchProjection<List<String>>toProjection()Create aSearchProjectioninstance matching the definition given in the previous DSL steps.
-
-
-
Constructor Detail
-
HighlightProjectionOptionsStepImpl
public HighlightProjectionOptionsStepImpl(SearchProjectionDslContext<?> dslContext, String fieldPath)
-
-
Method Detail
-
highlighter
public HighlightProjectionFinalStep highlighter(String highlighterName)
Description copied from interface:HighlightProjectionOptionsStepDefines a name of a named highlighter to be used by this field projection.- Specified by:
highlighterin interfaceHighlightProjectionOptionsStep- Parameters:
highlighterName- The name of a highlighterdefined on the query.- Returns:
- A final step to finish the definition of a highlight projection.
- See Also:
SearchQueryOptionsStep.highlighter(String, Function)
-
toProjection
public SearchProjection<List<String>> toProjection()
Description copied from interface:ProjectionFinalStepCreate aSearchProjectioninstance matching the definition given in the previous DSL steps.- Specified by:
toProjectionin interfaceProjectionFinalStep<List<String>>- Returns:
- The
SearchProjectioninstance.
-
-