mise API - v0.0.0
    Preparing search index...

    Class QueryIndex

    What has already been asked of which PACS, and where the answer is kept.

    Index
    • Every record, for the callers that render the log rather than search it.

      This is the whole log — every query, not one per question — because that is what /net/pacs/queries lists and what an operator went looking for when they could not find a query they knew they had run.

      Returns QueryIndexEntry[]

    entry_drop

    • entry_drop(
          criteria: Record<string, string>,
          server: string,
          owner: string,
      ): void

      Forgets one query, for when its stored answer turns out to be gone.

      Parameters

      • criteria: Record<string, string>

        The criteria it was filed under.

      • server: string

        The PACS it was asked of.

      • owner: string

        The identity that asked.

      Returns void

    entry_find

    • entry_find(
          criteria: Record<string, string>,
          server: string,
          owner: string,
      ): QueryIndexEntry | null

      Looks a question up.

      Parameters

      • criteria: Record<string, string>

        The criteria being asked.

      • server: string

        The PACS being asked.

      • owner: string

        The identity asking; another identity's answer is not an answer to this question.

      Returns QueryIndexEntry | null

      What is known, or null when this question is new to the index.

    entry_note

    • entry_note(entry: QueryIndexEntry): void

      Files a query under its question.

      The newest answer to a question wins: asking the same thing twice leaves the later record indexed, which is the one whose age a replay should state.

      Parameters

      Returns void

    • The oldest record the back-fill has walked, where it resumes.

      Returns string | null

      An ISO timestamp, or null before the first sweep.

    • Whether the index already holds a record for a query id.

      A resumed sweep asks this to count what it newly filed apart from the boundary record its inclusive resume re-fetches.

      Parameters

      • queryId: number

        The query's numeric id.

      Returns boolean

      True when the id is already indexed.

    • The newest record held, which is where a resumed sweep starts.

      A completed sweep has walked everything down to the floor, so the only thing a later boot can be missing is what arrived since. Asking CUBE for records at or after this turns a rebuild into a top-up.

      Returns string | null

      An ISO timestamp, or null when the index is empty.