@dxos/echo
    Preparing search index...

    Function from

    • Create a query scoped to a data source. The returned query selects everything from the source; chain .select() to narrow results.

      Parameters

      • ...args:
            | (
                | { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
                | {
                    _tag: "feed";
                    branches?: "all" | readonly (null | string)[];
                    feedUri: string;
                    walk?: { branch?: null | string; forks?: boolean };
                }
                | { _tag: "registry"; location: "local"
                | "remote" }
            )[]
            | [
                | Database.Database
                | Feed.Feed
                | Query.Any
                | "all-accessible-spaces"
                | Database.Database[]
                | Feed.Feed[]
                | { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
                | {
                    _tag: "feed";
                    branches?: "all" | readonly (null | string)[];
                    feedUri: string;
                    walk?: { branch?: null | string; forks?: boolean };
                }
                | { _tag: "registry"; location: "local"
                | "remote" }
                | (
                    | { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
                    | {
                        _tag: "feed";
                        branches?: "all" | readonly (null | string)[];
                        feedUri: string;
                        walk?: { branch?: null | string; forks?: boolean };
                    }
                    | { _tag: "registry"; location: "local"
                    | "remote" }
                )[],
                { includeFeeds?: boolean }?,
            ]
        • (
              | { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
              | {
                  _tag: "feed";
                  branches?: "all" | readonly (null | string)[];
                  feedUri: string;
                  walk?: { branch?: null | string; forks?: boolean };
              }
              | { _tag: "registry"; location: "local"
              | "remote" }
          )[]
          • { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
          • {
                _tag: "feed";
                branches?: "all" | readonly (null | string)[];
                feedUri: string;
                walk?: { branch?: null | string; forks?: boolean };
            }
            • Readonly_tag: "feed"
            • Optional Readonlybranches?: "all" | readonly (null | string)[]

              Restricts the read to items that are members of these branches: a branch id, or null for the main branch. Absent reads the main branch only, so a private branch never reaches a reader that did not ask for it; 'all' reads every branch.

            • ReadonlyfeedUri: string
            • Optional Readonlywalk?: { branch?: null | string; forks?: boolean }

              Reads the feed as a walk along the path from the root branch to branch (null or absent: the root branch, or on a backward walk the branch of the cursor), in local order, each item once at its latest block on the path. 'all' walks every branch of the feed in local order. forks also gives the base item of each branch that forks at a block the walk gives.

          • { _tag: "registry"; location: "local" | "remote" }
        • [
              | Database.Database
              | Feed.Feed
              | Query.Any
              | "all-accessible-spaces"
              | Database.Database[]
              | Feed.Feed[]
              | { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
              | {
                  _tag: "feed";
                  branches?: "all" | readonly (null | string)[];
                  feedUri: string;
                  walk?: { branch?: null | string; forks?: boolean };
              }
              | { _tag: "registry"; location: "local"
              | "remote" }
              | (
                  | { _tag: "space"; includeAllFeeds?: boolean; spaceId?: string }
                  | {
                      _tag: "feed";
                      branches?: "all" | readonly (null | string)[];
                      feedUri: string;
                      walk?: { branch?: null | string; forks?: boolean };
                  }
                  | { _tag: "registry"; location: "local"
                  | "remote" }
              )[],
              { includeFeeds?: boolean }?,
          ]

      Returns Query.Any

      Query scoped to the given source.

      O(k) in the number of sources; builds the AST without executing anything.