Skip to content

Variable: searchHitSchema

const searchHitSchema: ZodObject<{ fields: ZodRecord<ZodString, ZodUnknown>; id: ZodString; index: ZodOptional<ZodString>; score: ZodNumber; }, $strip>

Schema for a single search hit.

  • id: The document’s primary-key value.
  • score: Relevance score; higher is more relevant.
  • fields: The returned columns for this document, keyed by column name.
  • index (optional): Which index the hit came from (set on universal/federated results).