Class TextSearchResult
- java.lang.Object
-
- com.microsoft.semantickernel.data.textsearch.TextSearchResult
-
public class TextSearchResult extends Object
Represents a text search result.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextSearchResultfromRecord(Object record)Creates a new instance of theTextSearchResultclass from a record.StringgetLink()Gets the link of the search result.StringgetName()Gets the name of the search result.StringgetValue()Gets the value of the search result.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of the search result.- Returns:
- The name of the search result.
-
getValue
public String getValue()
Gets the value of the search result.- Returns:
- The value of the search result.
-
getLink
public String getLink()
Gets the link of the search result.- Returns:
- The link of the search result.
-
fromRecord
public static TextSearchResult fromRecord(Object record)
Creates a new instance of theTextSearchResultclass from a record. The record should have fields annotated withTextSearchResultName,TextSearchResultValue, andTextSearchResultLink.- Parameters:
record- The record.- Returns:
- The TextSearchResult.
-
-