Member Junction
    Preparing search index...
    OnProviderResolved: (
        event: {
            durationMs: number;
            results: SearchResultItem[];
            scopeID?: string;
            sourceType: string;
        },
    ) => void

    Callback fired the moment an individual provider's Search() resolves — before fusion, dedup, permission filtering, or rerank. Used by SearchEngine.streamSearch to emit provider events as each provider returns rather than waiting for the whole pipeline. The callback runs inside the provider's promise chain, so any throw it raises will cancel that provider's contribution but won't take down the search.

    Type Declaration

      • (
            event: {
                durationMs: number;
                results: SearchResultItem[];
                scopeID?: string;
                sourceType: string;
            },
        ): void
      • Parameters

        • event: {
              durationMs: number;
              results: SearchResultItem[];
              scopeID?: string;
              sourceType: string;
          }
          • durationMs: number

            Wall-clock time spent inside Provider.Search() for this invocation.

          • results: SearchResultItem[]

            Result rows from this provider, with metadata already stamped.

          • OptionalscopeID?: string

            Scope ID when running per-scope; undefined when unconstrained.

          • sourceType: string

            Source type as reported by the provider (e.g. 'vector', 'fulltext').

        Returns void