Documentation
    Preparing search index...

    Interface SearchResultItem

    Standardized search result entry returned by search engines.

    interface SearchResultItem {
        id: string;
        metadata?: Record<string, any>;
        path?: string;
        score: number;
        snippet: string;
        title: string;
    }
    Index

    Properties

    id: string

    Unique identifier of the matched document.

    metadata?: Record<string, any>

    Optional document metadata.

    path?: string

    File path or URI if applicable.

    score: number

    Relevance score (higher score indicates higher relevance).

    snippet: string

    Excerpt or matching text snippet.

    title: string

    Title of the matched document.