TextSearchOptions Class
- java.
lang. Object - com.
microsoft. semantickernel. data. textsearch. TextSearchOptions
- com.
public class TextSearchOptions
Represents the options for a text search.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final int |
DEFAULT_TOP
The default number of search results to return. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Builder |
builder()
Creates a new instance of the Builder class. |
|
static
Text |
createDefault()
Creates a new instance of the Text |
|
Text |
getFilter()
Gets the search filter. |
| int |
getSkip()
Gets the offset of the results to return. |
| int |
getTop()
Gets the limit of the number of results to return. |
| boolean |
isIncludeTotalCount()
Gets a value indicating whether to include the total count of search results. |
Methods inherited from java.lang.Object
Field Details
DEFAULT_TOP
public static final int DEFAULT_TOP
The default number of search results to return.
Method Details
builder
public static TextSearchOptions.Builder builder()
Creates a new instance of the Builder class.
Returns:
createDefault
public static TextSearchOptions createDefault()
Creates a new instance of the TextSearchOptions class with default values.
Returns:
getFilter
public TextSearchFilter getFilter()
Gets the search filter.
Returns:
getSkip
public int getSkip()
Gets the offset of the results to return.
Returns:
getTop
public int getTop()
Gets the limit of the number of results to return.
Returns:
isIncludeTotalCount
public boolean isIncludeTotalCount()
Gets a value indicating whether to include the total count of search results.
Returns: