FulltextSearchStore: PrimaryStore<R> & TextSearches & DocumentSearches<R> & Aggregates<
    R,
> & Searches<R> & Filters<R> & Imports<R> & {
    adapter: FullTextSearchAdapter;
    flushFulltextIndexSync: () => Promise<void>;
    routing: RoutingPolicy;
    unsubscribeFulltextIndexSync: () => void;
    importAllSearchableTypes(
        source: Identifies & {
            loadOne<T extends string>(
                typeName: T,
                entityIRI: string,
            ): Promise<EntityOf<R, T>>;
        } & {
            list?: (
                typeName: string,
                limit?: number,
            ) => Promise<Record<string, unknown>[]>;
        },
        options?: { limit?: number; order?: string[] },
    ): Promise<Record<string, Record<string, unknown>[]>>;
}

Type Parameters

  • R extends SchemaRegistry = SchemaRegistry

Type declaration

  • Readonlyadapter: FullTextSearchAdapter
  • flushFulltextIndexSync: () => Promise<void>

    Await queued index sync (tests). No-op when sync is inactive.

  • Readonlyrouting: RoutingPolicy
  • unsubscribeFulltextIndexSync: () => void

    Stop change-bus → index sync (no-op if primary has no subscribe).

  • importAllSearchableTypes:function
    • Parameters

      • source: Identifies & {
            loadOne<T extends string>(
                typeName: T,
                entityIRI: string,
            ): Promise<EntityOf<R, T>>;
        } & {
            list?: (
                typeName: string,
                limit?: number,
            ) => Promise<Record<string, unknown>[]>;
        }
      • Optionaloptions: { limit?: number; order?: string[] }

      Returns Promise<Record<string, Record<string, unknown>[]>>