TextSearchOptions.Builder Class
- java.
lang. Object - com.
microsoft. semantickernel. data. textsearch. TextSearchOptions. Builder
- com.
public static class TextSearchOptions.Builder
The builder for the TextSearchOptions class.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Builder() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Text |
build()
Builds a new instance of the TextSearchOptions class. |
| Builder |
withFilter(TextSearchFilter filter)
Sets the search filter. |
| Builder |
withIncludeTotalCount(boolean includeTotalCount)
Sets a value indicating whether to include the total count of search results. |
| Builder |
withSkip(int skip)
Sets the offset of the results to return. |
| Builder |
withTop(int top)
Sets the limit of the number of results to return. |
Methods inherited from java.lang.Object
Constructor Details
Builder
public Builder()
Method Details
build
public TextSearchOptions build()
Builds a new instance of the TextSearchOptions class.
Returns:
withFilter
public TextSearchOptions.Builder withFilter(TextSearchFilter filter)
Sets the search filter.
Parameters:
Returns:
withIncludeTotalCount
public TextSearchOptions.Builder withIncludeTotalCount(boolean includeTotalCount)
Sets a value indicating whether to include the total count of search results.
Parameters:
Returns:
withSkip
public TextSearchOptions.Builder withSkip(int skip)
Sets the offset of the results to return.
Parameters:
Returns:
withTop
public TextSearchOptions.Builder withTop(int top)
Sets the limit of the number of results to return.
Parameters:
Returns: