public static class HighlightArgs.Builder 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 |
build()
Build the
HighlightArgs. |
HighlightArgs.Builder |
field(String field)
Add a field to highlight.
|
HighlightArgs.Builder |
tags(String startTag,
String endTag)
Tags to surround the matched terms with.
|
public HighlightArgs.Builder field(String field)
field - the field to summarizeHighlightArgs.Builder for the purpose of method chainingpublic HighlightArgs.Builder tags(String startTag, String 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 build()
HighlightArgs.HighlightArgsCopyright © 2026 lettuce.io. All rights reserved.