Class HighlightBase
java.lang.Object
org.opensearch.client.opensearch.core.search.HighlightBase
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
- Direct Known Subclasses:
Highlight,HighlightField
@Generated("org.opensearch.client.codegen.CodeGenerator")
public abstract class HighlightBase
extends Object
implements PlainJsonSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringA string that contains each boundary character.final IntegerHow far to scan for boundary characters.final BoundaryScannerAPI name:boundary_scannerfinal StringControls which locale is used to search for sentence and word boundaries.booleanfinal BooleanAPI name:force_sourcefinal HighlighterFragmenterAPI name:fragmenterfinal IntegerAPI name:fragment_offsetfinal IntegerThe size of the highlighted fragment in characters.inthashCode()final BooleanAPI name:highlight_filterfinal QueryAPI name:highlight_queryfinal IntegerIf set to a non-negative value, highlighting stops at this defined maximum limit.final IntegerAPI name:max_fragment_lengthfinal IntegerThe amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.final IntegerThe maximum number of fragments to return.options()API name:optionsfinal HighlighterOrderorder()API name:orderfinal IntegerControls the number of matching phrases in a document that are considered.postTags()When used in conjunction withpre_tags, defines the HTML tags to use for the highlighted text.preTags()When used in conjunction withpost_tags, defines the HTML tags to use for the highlighted text.final BooleanBy default, only fields that contains a query match are highlighted.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends HighlightBase.AbstractBuilder<BuilderT>>
voidsetupHighlightBaseDeserializer(ObjectDeserializer<BuilderT> op) final HighlighterTagsSchemaAPI name:tags_schemafinal HighlighterTypetype()API name:typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Constructor Details
-
HighlightBase
-
-
Method Details
-
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 -
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: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_tags -
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_tags -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupHighlightBaseDeserializer
protected static <BuilderT extends HighlightBase.AbstractBuilder<BuilderT>> void setupHighlightBaseDeserializer(ObjectDeserializer<BuilderT> op) -
hashCode
public int hashCode() -
equals
-