K - the key typepublic static class SummarizeArgs.Builder<K,V> extends Object
SummarizeArgs.
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 |
|---|---|
SummarizeArgs<K,V> |
build()
Build the
SummarizeArgs. |
SummarizeArgs.Builder<K,V> |
field(K field)
Add a field to summarize.
|
SummarizeArgs.Builder<K,V> |
fragments(long frags)
Set the number of fragments to be returned.
|
SummarizeArgs.Builder<K,V> |
len(long len)
Set the number of context words each fragment should contain.
|
SummarizeArgs.Builder<K,V> |
separator(V separator)
The string used to divide individual summary snippets.
|
public SummarizeArgs.Builder<K,V> field(K field)
field - the field to summarizeSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs.Builder<K,V> fragments(long frags)
frags - the number of fragments to returnSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs.Builder<K,V> len(long len)
len - the length of the fragmentsSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs.Builder<K,V> separator(V separator)
... which is common among search
engines, but you may override this with any other string if you desire to programmatically divide the snippets later
on. You may also use a newline sequence, as newlines are stripped from the result body during processing.separator - the separator between fragmentsSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs<K,V> build()
SummarizeArgs.SummarizeArgsCopyright © 2025 lettuce.io. All rights reserved.