K - the key typepublic static class HighlightArgs.Builder<K,V> extends Object
HighlightArgs.
As a final step the build() method needs to be executed to create the final
SortByArgs instance.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HighlightArgs<K,V> |
build()
Build the
HighlightArgs. |
HighlightArgs.Builder<K,V> |
field(K field)
Add a field to highlight.
|
HighlightArgs.Builder<K,V> |
tags(V startTag,
V endTag)
Tags to surround the matched terms with.
|
public HighlightArgs.Builder<K,V> field(K field)
field - the field to summarizeHighlightArgs.Builder for the purpose of method chainingpublic HighlightArgs.Builder<K,V> tags(V startTag, V endTag)
startTag - the string is prepended to each matched termendTag - the string is appended to each matched termHighlightArgs.Builder for the purpose of method chainingpublic HighlightArgs<K,V> build()
HighlightArgs.HighlightArgsCopyright © 2025 lettuce.io. All rights reserved.