Class HighlightField.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.search.HighlightField.Builder
- All Implemented Interfaces:
ObjectBuilder<HighlightField>
- Enclosing class:
- HighlightField
public static class HighlightField.Builder extends ObjectBuilderBase implements ObjectBuilder<HighlightField>
Builder for
HighlightField
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HighlightField.Builder
boundaryChars(java.lang.String value)
API name:boundary_chars
HighlightField.Builder
boundaryMaxScan(java.lang.Integer value)
API name:boundary_max_scan
HighlightField.Builder
boundaryScanner(BoundaryScanner value)
API name:boundary_scanner
HighlightField.Builder
boundaryScannerLocale(java.lang.String value)
API name:boundary_scanner_locale
HighlightField
build()
Builds aHighlightField
.HighlightField.Builder
field(java.lang.String value)
API name:field
HighlightField.Builder
forceSource(java.lang.Boolean value)
API name:force_source
HighlightField.Builder
fragmenter(HighlighterFragmenter value)
API name:fragmenter
HighlightField.Builder
fragmentOffset(java.lang.Integer value)
API name:fragment_offset
HighlightField.Builder
fragmentSize(java.lang.Integer value)
API name:fragment_size
HighlightField.Builder
highlightQuery(Query value)
API name:highlight_query
HighlightField.Builder
highlightQuery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
API name:highlight_query
HighlightField.Builder
matchedFields(java.lang.String value, java.lang.String... values)
API name:matched_fields
HighlightField.Builder
matchedFields(java.util.List<java.lang.String> list)
API name:matched_fields
HighlightField.Builder
maxFragmentLength(java.lang.Integer value)
API name:max_fragment_length
HighlightField.Builder
noMatchSize(java.lang.Integer value)
API name:no_match_size
HighlightField.Builder
numberOfFragments(java.lang.Integer value)
API name:number_of_fragments
HighlightField.Builder
order(HighlighterOrder value)
API name:order
HighlightField.Builder
phraseLimit(java.lang.Integer value)
API name:phrase_limit
HighlightField.Builder
postTags(java.lang.String value, java.lang.String... values)
API name:post_tags
HighlightField.Builder
postTags(java.util.List<java.lang.String> list)
API name:post_tags
HighlightField.Builder
preTags(java.lang.String value, java.lang.String... values)
API name:pre_tags
HighlightField.Builder
preTags(java.util.List<java.lang.String> list)
API name:pre_tags
HighlightField.Builder
requireFieldMatch(java.lang.Boolean value)
API name:require_field_match
HighlightField.Builder
tagsSchema(HighlighterTagsSchema value)
API name:tags_schema
HighlightField.Builder
type(HighlighterType value)
API name:type
HighlightField.Builder
type(java.util.function.Function<HighlighterType.Builder,ObjectBuilder<HighlighterType>> fn)
API name:type
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
boundaryChars
API name:boundary_chars
-
boundaryMaxScan
API name:boundary_max_scan
-
boundaryScanner
API name:boundary_scanner
-
boundaryScannerLocale
API name:boundary_scanner_locale
-
field
API name:field
-
forceSource
API name:force_source
-
fragmenter
API name:fragmenter
-
fragmentOffset
API name:fragment_offset
-
fragmentSize
API name:fragment_size
-
highlightQuery
API name:highlight_query
-
highlightQuery
public final HighlightField.Builder highlightQuery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:highlight_query
-
matchedFields
API name:matched_fields
Adds all elements of
list
tomatchedFields
. -
matchedFields
public final HighlightField.Builder matchedFields(java.lang.String value, java.lang.String... values)API name:matched_fields
Adds one or more values to
matchedFields
. -
maxFragmentLength
API name:max_fragment_length
-
noMatchSize
API name:no_match_size
-
numberOfFragments
API name:number_of_fragments
-
order
API name:order
-
phraseLimit
API name:phrase_limit
-
postTags
API name:post_tags
Adds all elements of
list
topostTags
. -
postTags
API name:post_tags
Adds one or more values to
postTags
. -
preTags
API name:pre_tags
Adds all elements of
list
topreTags
. -
preTags
API name:pre_tags
Adds one or more values to
preTags
. -
requireFieldMatch
API name:require_field_match
-
tagsSchema
API name:tags_schema
-
type
API name:type
-
type
public final HighlightField.Builder type(java.util.function.Function<HighlighterType.Builder,ObjectBuilder<HighlighterType>> fn)API name:type
-
build
Builds aHighlightField
.- Specified by:
build
in interfaceObjectBuilder<HighlightField>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-