Interface HighlighterUnifiedOptionsStep
- All Superinterfaces:
HighlighterFinalStep, HighlighterOptionsStep<HighlighterUnifiedOptionsStep>
public interface HighlighterUnifiedOptionsStep
extends HighlighterOptionsStep<HighlighterUnifiedOptionsStep>
The step in a unified highlighter definition where options can be set. Refer to your particular backend documentation
for more detailed information on the exposed settings.
-
Method Summary
Modifier and TypeMethodDescriptionSpecify how the text should be broken up into highlighting snippets.boundaryScanner(Consumer<? super HighlighterBoundaryScannerTypeStep<?, ?>> boundaryScannerContributor) Specify how the text should be broken up into highlighting snippets.Methods inherited from interface HighlighterFinalStep
toHighlighterMethods inherited from interface HighlighterOptionsStep
encoder, fragmentSize, noMatchSize, numberOfFragments, orderByScore, tag
-
Method Details
-
boundaryScanner
HighlighterBoundaryScannerTypeStep<?, ? extends HighlighterUnifiedOptionsStep> boundaryScanner()Specify how the text should be broken up into highlighting snippets.By default, a
sentence boundary scanneris used.- Returns:
- The next step in a highlighter definition exposing boundary scanner specific options.
-
boundaryScanner
HighlighterUnifiedOptionsStep boundaryScanner(Consumer<? super HighlighterBoundaryScannerTypeStep<?, ?>> boundaryScannerContributor) Specify how the text should be broken up into highlighting snippets.By default, a
sentence boundary scanneris used.- Parameters:
boundaryScannerContributor- A consumer that will configure a boundary scanner for this highlighter. Should generally be a lambda expression.- Returns:
- The next step in a highlighter definition.
-