Interface HighlighterFastVectorHighlighterOptionsStep
- All Superinterfaces:
HighlighterFinalStep
,HighlighterOptionsStep<HighlighterFastVectorHighlighterOptionsStep>
-
Method Summary
Modifier and TypeMethodDescriptionHighlighterBoundaryScannerTypeFastVectorHighlighterStep<? extends HighlighterFastVectorHighlighterOptionsStep>
Specify how the text should be broken up into highlighting snippets.boundaryScanner
(Consumer<? super HighlighterBoundaryScannerTypeFastVectorHighlighterStep<?>> boundaryScannerContributor) Specify how the text should be broken up into highlighting snippets.phraseLimit
(int limit) Specify the maximum number of matching phrases in a document that are considered for highlighting.tags
(Collection<String> preTags, String postTag) An alternative totag definition
.tags
(Collection<String> preTags, Collection<String> postTags) An alternative totag definition
.tagSchema
(HighlighterTagSchema tagSchema) Specify a set of predefined tags instead ofmanually supplying them
.Methods inherited from interface org.hibernate.search.engine.search.highlighter.dsl.HighlighterFinalStep
toHighlighter
Methods inherited from interface org.hibernate.search.engine.search.highlighter.dsl.HighlighterOptionsStep
encoder, fragmentSize, noMatchSize, numberOfFragments, orderByScore, tag
-
Method Details
-
phraseLimit
Specify the maximum number of matching phrases in a document that are considered for highlighting.- Parameters:
limit
- The maximum number of matching phrases.- Returns:
- The next step in a highlighter definition.
-
tags
An alternative totag definition
.Any previous calls to
HighlighterOptionsStep.tag(String, String)
/tags(Collection, String)
/tags(Collection, Collection)
/tagSchema(HighlighterTagSchema)
on this highlighter definition will be discarded and tags supplied here will be used.- Parameters:
preTags
- The opening (pre) tags placed before the highlighted text.postTag
- The closing (post) tag placed after the highlighted text.- Returns:
- The next step in a highlighter definition.
-
tags
HighlighterFastVectorHighlighterOptionsStep tags(Collection<String> preTags, Collection<String> postTags) An alternative totag definition
.Any previous calls to
HighlighterOptionsStep.tag(String, String)
/tags(Collection, String)
/tags(Collection, Collection)
/tagSchema(HighlighterTagSchema)
on this highlighter definition will be discarded and tags supplied here will be used.- Parameters:
preTags
- The opening (pre) tags placed before the highlighted text.postTags
- The closing (post) tags placed after the highlighted text.- Returns:
- The next step in a highlighter definition.
-
tagSchema
Specify a set of predefined tags instead ofmanually supplying them
.Any previous calls to
HighlighterOptionsStep.tag(String, String)
/tags(Collection, String)
/tags(Collection, Collection)
on this highlighter definition will be discarded and tags from the predefined schema will be used.- Parameters:
tagSchema
- The tag schema to apply.- Returns:
- The next step in a highlighter definition.
- See Also:
-
boundaryScanner
HighlighterBoundaryScannerTypeFastVectorHighlighterStep<? extends HighlighterFastVectorHighlighterOptionsStep> boundaryScanner()Specify how the text should be broken up into highlighting snippets.By default, a
character boundary scanner
is used.- Returns:
- The next step in a highlighter definition exposing boundary scanner specific options.
-
boundaryScanner
HighlighterFastVectorHighlighterOptionsStep boundaryScanner(Consumer<? super HighlighterBoundaryScannerTypeFastVectorHighlighterStep<?>> boundaryScannerContributor) Specify how the text should be broken up into highlighting snippets.By default, a
character boundary scanner
is 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.
-