Writeable, ToXContent, ToXContentObject, Rewriteable<HighlightBuilder.Field>public static class HighlightBuilder.Field extends AbstractHighlighterBuilder<HighlightBuilder.Field>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>BOUNDARY_CHARS_FIELD, BOUNDARY_MAX_SCAN_FIELD, BOUNDARY_SCANNER_FIELD, BOUNDARY_SCANNER_LOCALE_FIELD, boundaryChars, boundaryMaxScan, boundaryScannerLocale, boundaryScannerType, ENCODER_FIELD, FIELDS_FIELD, FORCE_SOURCE_FIELD, forceSource, FRAGMENT_OFFSET_FIELD, FRAGMENT_SIZE_FIELD, fragmenter, FRAGMENTER_FIELD, fragmentSize, HIGHLIGHT_FILTER_FIELD, HIGHLIGHT_QUERY_FIELD, highlighterType, highlightFilter, highlightQuery, MATCHED_FIELDS_FIELD, NO_MATCH_SIZE_FIELD, noMatchSize, NUMBER_OF_FRAGMENTS_FIELD, numOfFragments, options, OPTIONS_FIELD, order, ORDER_FIELD, PHRASE_LIMIT_FIELD, phraseLimit, POST_TAGS_FIELD, postTags, PRE_TAGS_FIELD, preTags, REQUIRE_FIELD_MATCH_FIELD, requireFieldMatch, TYPE_FIELDMAX_REWRITE_ROUNDSEMPTY_PARAMS| Constructor | Description |
|---|---|
Field(java.lang.String name) |
|
Field(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(HighlightBuilder.Field other) |
fields only present in subclass should be checked for equality in the implementation
|
protected int |
doHashCode() |
fields only present in subclass should contribute to hashCode in the implementation
|
protected void |
doWriteTo(StreamOutput out) |
|
HighlightBuilder.Field |
fragmentOffset(int fragmentOffset) |
|
void |
innerXContent(XContentBuilder builder) |
|
HighlightBuilder.Field |
matchedFields(java.lang.String... matchedFields) |
Set the matched fields to highlight against this field data.
|
java.lang.String |
name() |
|
HighlightBuilder.Field |
rewrite(QueryRewriteContext ctx) |
Rewrites this instance based on the provided context.
|
boundaryChars, boundaryChars, boundaryMaxScan, boundaryMaxScan, boundaryScannerLocale, boundaryScannerLocale, boundaryScannerType, boundaryScannerType, boundaryScannerType, equals, forceSource, forceSource, fragmenter, fragmenter, fragmentSize, fragmentSize, hashCode, highlighterType, highlighterType, highlightFilter, highlightFilter, highlightQuery, highlightQuery, noMatchSize, noMatchSize, numOfFragments, numOfFragments, options, options, order, order, order, phraseLimit, phraseLimit, postTags, postTags, preTags, preTags, requireFieldMatch, requireFieldMatch, toString, toXContent, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic Field(java.lang.String name)
public Field(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractHighlighterBuilder<HighlightBuilder.Field>java.io.IOExceptionpublic java.lang.String name()
public HighlightBuilder.Field fragmentOffset(int fragmentOffset)
public HighlightBuilder.Field matchedFields(java.lang.String... matchedFields)
public void innerXContent(XContentBuilder builder) throws java.io.IOException
innerXContent in class AbstractHighlighterBuilder<HighlightBuilder.Field>java.io.IOExceptionprotected int doHashCode()
AbstractHighlighterBuilderdoHashCode in class AbstractHighlighterBuilder<HighlightBuilder.Field>protected boolean doEquals(HighlightBuilder.Field other)
AbstractHighlighterBuilderdoEquals in class AbstractHighlighterBuilder<HighlightBuilder.Field>public HighlightBuilder.Field rewrite(QueryRewriteContext ctx) throws java.io.IOException
Rewriteablejava.io.IOException