Represents a search result.

interface ISearchResult {
    content: string;
    pathName: string;
    relevance: number;
}

Properties

content: string

The content of the search result.

pathName: string

The path name of the document containing the search result.

relevance: number

The relevance of the search result. The relevance is a number between 0 and 1, where 1 is the most relevant.