TextSearchResult Class
- java.
lang. Object - com.
microsoft. semantickernel. data. textsearch. TextSearchResult
- com.
public class TextSearchResult
Represents a text search result.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Text |
fromRecord(Object record)
Creates a new instance of the TextSearchResult class from a record. |
| java.lang.String |
getLink()
Gets the link of the search result. |
| java.lang.String |
getName()
Gets the name of the search result. |
| java.lang.String |
getValue()
Gets the value of the search result. |
Methods inherited from java.lang.Object
Method Details
fromRecord
public static TextSearchResult fromRecord(Object record)
Creates a new instance of the TextSearchResult class from a record. The record should have fields annotated with TextSearchResultName, TextSearchResultValue, and TextSearchResultLink.
Parameters:
Returns:
getLink
public String getLink()
Gets the link of the search result.
Returns:
getName
public String getName()
Gets the name of the search result.
Returns:
getValue
public String getValue()
Gets the value of the search result.
Returns: