Class HighlightBase.AbstractBuilder<BuilderT extends HighlightBase.AbstractBuilder<BuilderT>>

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.core.search.HighlightBase.AbstractBuilder<BuilderT>
All Implemented Interfaces:
WithJson<BuilderT>
Direct Known Subclasses:
Highlight.Builder, HighlightField.Builder
Enclosing class:
HighlightBase

protected abstract static class HighlightBase.AbstractBuilder<BuilderT extends HighlightBase.AbstractBuilder<BuilderT>>
extends WithJsonObjectBuilderBase<BuilderT>
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • type

      public final BuilderT type​(@Nullable java.lang.String value)
      API name: type
    • type

      public final BuilderT type​(@Nullable HighlighterType value)
      API name: type
    • boundaryChars

      public final BuilderT boundaryChars​(@Nullable java.lang.String value)
      API name: boundary_chars
    • boundaryMaxScan

      public final BuilderT boundaryMaxScan​(@Nullable java.lang.Integer value)
      API name: boundary_max_scan
    • boundaryScanner

      public final BuilderT boundaryScanner​(@Nullable BoundaryScanner value)
      API name: boundary_scanner
    • boundaryScannerLocale

      public final BuilderT boundaryScannerLocale​(@Nullable java.lang.String value)
      API name: boundary_scanner_locale
    • forceSource

      public final BuilderT forceSource​(@Nullable java.lang.Boolean value)
      API name: force_source
    • fragmenter

      public final BuilderT fragmenter​(@Nullable HighlighterFragmenter value)
      API name: fragmenter
    • fragmentSize

      public final BuilderT fragmentSize​(@Nullable java.lang.Integer value)
      API name: fragment_size
    • highlightFilter

      public final BuilderT highlightFilter​(@Nullable java.lang.Boolean value)
      API name: highlight_filter
    • highlightQuery

      public final BuilderT highlightQuery​(@Nullable Query value)
      API name: highlight_query
    • highlightQuery

      public final BuilderT highlightQuery​(java.util.function.Function<Query.Builder,​ObjectBuilder<Query>> fn)
      API name: highlight_query
    • maxFragmentLength

      public final BuilderT maxFragmentLength​(@Nullable java.lang.Integer value)
      API name: max_fragment_length
    • maxAnalyzedOffset

      public final BuilderT maxAnalyzedOffset​(@Nullable java.lang.Integer value)
      API name: max_analyzed_offset
    • noMatchSize

      public final BuilderT noMatchSize​(@Nullable java.lang.Integer value)
      API name: no_match_size
    • numberOfFragments

      public final BuilderT numberOfFragments​(@Nullable java.lang.Integer value)
      API name: number_of_fragments
    • options

      public final BuilderT options​(java.util.Map<java.lang.String,​JsonData> map)
      API name: options

      Adds all entries of map to options.

    • options

      public final BuilderT options​(java.lang.String key, JsonData value)
      API name: options

      Adds an entry to options.

    • order

      public final BuilderT order​(@Nullable HighlighterOrder value)
      API name: order
    • phraseLimit

      public final BuilderT phraseLimit​(@Nullable java.lang.Integer value)
      API name: phrase_limit
    • postTags

      public final BuilderT postTags​(java.util.List<java.lang.String> list)
      API name: post_tags

      Adds all elements of list to postTags.

    • postTags

      public final BuilderT postTags​(java.lang.String value, java.lang.String... values)
      API name: post_tags

      Adds one or more values to postTags.

    • preTags

      public final BuilderT preTags​(java.util.List<java.lang.String> list)
      API name: pre_tags

      Adds all elements of list to preTags.

    • preTags

      public final BuilderT preTags​(java.lang.String value, java.lang.String... values)
      API name: pre_tags

      Adds one or more values to preTags.

    • requireFieldMatch

      public final BuilderT requireFieldMatch​(@Nullable java.lang.Boolean value)
      API name: require_field_match
    • tagsSchema

      public final BuilderT tagsSchema​(@Nullable HighlighterTagsSchema value)
      API name: tags_schema
    • self

      protected abstract BuilderT self()
      Specified by:
      self in class WithJsonObjectBuilderBase<BuilderT extends HighlightBase.AbstractBuilder<BuilderT>>