KernelSearchResults<T> Class
- java.
lang. Object - com.
microsoft. semantickernel. data. textsearch. KernelSearchResults<T>
- com.
Type Parameters
- T
The type of the search results.
public class KernelSearchResults<T>
The search results.
Constructor Summary
| Constructor | Description |
|---|---|
| KernelSearchResults(List<T> results) |
Creates a new instance of the Kernel |
| KernelSearchResults(List<T> results, long totalCount, Map<String,Object> metadata) |
Creates a new instance of the Kernel |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
Gets the metadata associated with the search results. |
| java.util.List<T> |
getResults()
Gets the search results. |
| long |
getTotalCount()
Gets the total count of search results. |
Methods inherited from java.lang.Object
Constructor Details
KernelSearchResults
public KernelSearchResults(List
Creates a new instance of the KernelSearchResults class.
Parameters:
KernelSearchResults
public KernelSearchResults(List
Creates a new instance of the KernelSearchResults class.
Parameters:
Method Details
getMetadata
public Map
Gets the metadata associated with the search results.
Returns:
getResults
public List
Gets the search results.
Returns:
getTotalCount
public long getTotalCount()
Gets the total count of search results. This value represents the total number of results that are available for the current query and not the number of results being returned.
Returns: