Class HighlightBase.AbstractBuilder<BuilderT extends HighlightBase.AbstractBuilder<BuilderT>>
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.HighlightBase.AbstractBuilder<BuilderT>
- Direct Known Subclasses:
Highlight.Builder,HighlightField.Builder
- Enclosing class:
HighlightBase
public abstract static class HighlightBase.AbstractBuilder<BuilderT extends HighlightBase.AbstractBuilder<BuilderT>>
extends ObjectBuilderBase
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderTboundaryChars(String value) A string that contains each boundary character.final BuilderTboundaryMaxScan(Integer value) How far to scan for boundary characters.final BuilderTboundaryScanner(BoundaryScanner value) API name:boundary_scannerfinal BuilderTboundaryScannerLocale(String value) Controls which locale is used to search for sentence and word boundaries.final BuilderTforceSource(Boolean value) API name:force_sourcefinal BuilderTfragmenter(HighlighterFragmenter value) API name:fragmenterfinal BuilderTfragmentOffset(Integer value) API name:fragment_offsetfinal BuilderTfragmentSize(Integer value) The size of the highlighted fragment in characters.final BuilderThighlightFilter(Boolean value) API name:highlight_filterfinal BuilderTAPI name:highlight_queryfinal BuilderThighlightQuery(Query value) API name:highlight_queryfinal BuilderTmaxAnalyzerOffset(Integer value) If set to a non-negative value, highlighting stops at this defined maximum limit.final BuilderTmaxFragmentLength(Integer value) API name:max_fragment_lengthfinal BuilderTnoMatchSize(Integer value) The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.final BuilderTnumberOfFragments(Integer value) The maximum number of fragments to return.final BuilderTAPI name:optionsfinal BuilderTAPI name:optionsfinal BuilderTorder(HighlighterOrder value) API name:orderfinal BuilderTphraseLimit(Integer value) Controls the number of matching phrases in a document that are considered.final BuilderTWhen used in conjunction withpre_tags, defines the HTML tags to use for the highlighted text.final BuilderTWhen used in conjunction withpre_tags, defines the HTML tags to use for the highlighted text.final BuilderTWhen used in conjunction withpost_tags, defines the HTML tags to use for the highlighted text.final BuilderTWhen used in conjunction withpost_tags, defines the HTML tags to use for the highlighted text.final BuilderTrequireFieldMatch(Boolean value) By default, only fields that contains a query match are highlighted.protected abstract BuilderTself()final BuilderTtagsSchema(HighlighterTagsSchema value) API name:tags_schemafinal BuilderTAPI name:typefinal BuilderTtype(HighlighterType value) API name:typeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder() -
AbstractBuilder
-
AbstractBuilder
-
-
Method Details
-
self
-
boundaryChars
A string that contains each boundary character.API name:
boundary_chars -
boundaryMaxScan
How far to scan for boundary characters.API name:
boundary_max_scan -
boundaryScanner
API name:boundary_scanner -
boundaryScannerLocale
Controls which locale is used to search for sentence and word boundaries. This parameter takes the form of a language tag, for example,"en-US","fr-FR", or"ja-JP".API name:
boundary_scanner_locale -
forceSource
API name:force_source -
fragmentOffset
API name:fragment_offset -
fragmentSize
The size of the highlighted fragment in characters.API name:
fragment_size -
fragmenter
API name:fragmenter -
highlightFilter
API name:highlight_filter -
highlightQuery
API name:highlight_query -
highlightQuery
API name:highlight_query -
maxAnalyzerOffset
If set to a non-negative value, highlighting stops at this defined maximum limit. The rest of the text is not processed or highlighted, and no error is returned. Themax_analyzer_offsetquery setting does not override theindex.highlight.max_analyzed_offsetsetting, which takes precedence when it is set to a lower value than the query setting.API name:
max_analyzer_offset -
maxFragmentLength
API name:max_fragment_length -
noMatchSize
The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.API name:
no_match_size -
numberOfFragments
The maximum number of fragments to return. When the number of fragments is set to0, no fragments are returned. Instead, the entirety of a field's contents are highlighted and returned. This is useful when you need to highlight short texts, such as a title or address, in which fragmentation is not required. Ifnumber_of_fragmentsis set to0, thefragment_sizeis ignored.API name:
number_of_fragments -
options
API name:optionsAdds all elements of
maptooptions. -
options
API name:optionsAdds an entry to
options. -
order
API name:order -
phraseLimit
Controls the number of matching phrases in a document that are considered. This prevents thefvhhighlighter from analyzing too many phrases and consuming too much memory. When usingmatched_fields, phrase-limited phrases per matched field are considered. Raising the limit increases the query time and consumes more memory. This setting is only supported by thefvhhighlighter.API name:
phrase_limit -
postTags
When used in conjunction withpre_tags, defines the HTML tags to use for the highlighted text. By default, highlighted text is wrapped in<em>and</em>tags.API name:
post_tagsAdds all elements of
listtopostTags. -
postTags
When used in conjunction withpre_tags, defines the HTML tags to use for the highlighted text. By default, highlighted text is wrapped in<em>and</em>tags.API name:
post_tagsAdds one or more values to
postTags. -
preTags
When used in conjunction withpost_tags, defines the HTML tags to use for the highlighted text. By default, highlighted text is wrapped in<em>and</em>tags.API name:
pre_tagsAdds all elements of
listtopreTags. -
preTags
When used in conjunction withpost_tags, defines the HTML tags to use for the highlighted text. By default, highlighted text is wrapped in<em>and</em>tags.API name:
pre_tagsAdds one or more values to
preTags. -
requireFieldMatch
By default, only fields that contains a query match are highlighted. Set tofalseto highlight all fields.API name:
require_field_match -
tagsSchema
API name:tags_schema -
type
API name:type -
type
@Nonnull public final BuilderT type(Function<HighlighterType.Builder, ObjectBuilder<HighlighterType>> fn) API name:type
-