Class SearchHighlighterBuilder
- java.lang.Object
-
- org.hibernate.search.engine.search.highlighter.spi.SearchHighlighterBuilder
-
- Direct Known Subclasses:
ElasticsearchSearchHighlighterImpl.Builder,LuceneAbstractSearchHighlighter.Builder
public abstract class SearchHighlighterBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Character[]boundaryCharsprotected IntegerboundaryMaxScanprotected LocaleboundaryScannerLocaleprotected BoundaryScannerTypeboundaryScannerTypeprotected HighlighterEncoderencoderprotected HighlighterFragmenterfragmenterTypeprotected IntegerfragmentSizeprotected IntegernoMatchSizeprotected IntegernumberOfFragmentsprotected BooleanorderByScoreprotected IntegerphraseLimitprotected List<String>postTagsprotected List<String>preTagsprotected HighlighterTagSchematagSchemaprotected SearchHighlighterTypetype
-
Constructor Summary
Constructors Constructor Description SearchHighlighterBuilder()
-
Method Summary
-
-
-
Field Detail
-
type
protected SearchHighlighterType type
-
boundaryChars
protected Character[] boundaryChars
-
boundaryMaxScan
protected Integer boundaryMaxScan
-
fragmentSize
protected Integer fragmentSize
-
noMatchSize
protected Integer noMatchSize
-
numberOfFragments
protected Integer numberOfFragments
-
orderByScore
protected Boolean orderByScore
-
boundaryScannerType
protected BoundaryScannerType boundaryScannerType
-
boundaryScannerLocale
protected Locale boundaryScannerLocale
-
fragmenterType
protected HighlighterFragmenter fragmenterType
-
phraseLimit
protected Integer phraseLimit
-
encoder
protected HighlighterEncoder encoder
-
tagSchema
protected HighlighterTagSchema tagSchema
-
-
Method Detail
-
type
public SearchHighlighterBuilder type(SearchHighlighterType type)
-
boundaryChars
public SearchHighlighterBuilder boundaryChars(String boundaryChars)
-
boundaryChars
public SearchHighlighterBuilder boundaryChars(Character[] boundaryChars)
-
boundaryMaxScan
public SearchHighlighterBuilder boundaryMaxScan(Integer boundaryMaxScan)
-
fragmentSize
public SearchHighlighterBuilder fragmentSize(Integer fragmentSize)
-
noMatchSize
public SearchHighlighterBuilder noMatchSize(Integer noMatchSize)
-
numberOfFragments
public SearchHighlighterBuilder numberOfFragments(Integer numberOfFragments)
-
orderByScore
public SearchHighlighterBuilder orderByScore(Boolean orderByScore)
-
boundaryScannerType
public SearchHighlighterBuilder boundaryScannerType(BoundaryScannerType boundaryScannerType)
-
boundaryScannerLocale
public SearchHighlighterBuilder boundaryScannerLocale(Locale boundaryScannerLocale)
-
fragmenter
public SearchHighlighterBuilder fragmenter(HighlighterFragmenter type)
-
phraseLimit
public SearchHighlighterBuilder phraseLimit(Integer phraseLimit)
-
tag
public SearchHighlighterBuilder tag(String preTag, String postTag)
-
tags
public SearchHighlighterBuilder tags(Collection<String> preTags, String postTag)
-
tags
public SearchHighlighterBuilder tags(Collection<String> preTags, Collection<String> postTags)
-
clearTags
public void clearTags()
-
tagSchema
public SearchHighlighterBuilder tagSchema(HighlighterTagSchema tagSchema)
-
encoder
public SearchHighlighterBuilder encoder(HighlighterEncoder encoder)
-
type
public SearchHighlighterType type()
-
boundaryChars
public Character[] boundaryChars()
-
boundaryCharsAsString
public String boundaryCharsAsString()
-
boundaryMaxScan
public Integer boundaryMaxScan()
-
fragmentSize
public Integer fragmentSize()
-
noMatchSize
public Integer noMatchSize()
-
numberOfFragments
public Integer numberOfFragments()
-
orderByScore
public Boolean orderByScore()
-
boundaryScannerType
public BoundaryScannerType boundaryScannerType()
-
boundaryScannerLocale
public Locale boundaryScannerLocale()
-
fragmenterType
public HighlighterFragmenter fragmenterType()
-
phraseLimit
public Integer phraseLimit()
-
tagSchema
public HighlighterTagSchema tagSchema()
-
encoder
public HighlighterEncoder encoder()
-
build
public abstract SearchHighlighter build()
-
-