TextSearchResult Class

  • java.lang.Object
    • com.microsoft.semantickernel.data.textsearch.TextSearchResult

public class TextSearchResult

Represents a text search result.

Method Summary

Modifier and Type Method and Description
static TextSearchResult 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

record - The record.

Returns:

The TextSearchResult.

getLink

public String getLink()

Gets the link of the search result.

Returns:

The link of the search result.

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.

Applies to