@dxos/echo
    Preparing search index...

    Type Alias Entry<T>

    Individual query result entry.

    type Entry<T> = {
        id: string;
        match?: { rank: number };
        resolution?: {
            source: QueryResult.Source;
            time: number;
            verified?: boolean;
            version?: QueryResult.Version;
        };
        result?: T;
    }

    Type Parameters

    • T
    Index

    Properties

    id: string
    match?: { rank: number }

    Type declaration

    • rank: number

      Higher means better match.

    resolution?: {
        source: QueryResult.Source;
        time: number;
        verified?: boolean;
        version?: QueryResult.Version;
    }

    Query resolution metadata.

    Type declaration

    • source: QueryResult.Source
    • time: number

      Query resolution time in milliseconds.

    • Optionalverified?: boolean

      Whether local evidence confirmed a remote entry: its object is loaded here and still matches, or is held at the exact version the remote evaluated. False when the entry is shown on the remote's word alone.

    • Optionalversion?: QueryResult.Version

      The state a remote source evaluated the entry at; absent for an in-process entry.

    result?: T

    May not be present for remote results.