Search Hit
One hit: an object (CONTAINING_ELEMENT) or a document root (WHOLE_DOCUMENT). Readable while its result is open.
Properties
The key of the hit's document in a store with CreationOptions.documentKey, null in a store without one. Known already for a DocumentKeyQuery hit, and looked up in the key index when first read for others.
Payload bytes that store the node, including the fragments it refers to, before compression. It predicts the size of the JSON output roughly, not exactly.
Where node is in its document, as an RFC 9535 Normalized Path from the document root (SPEC.md §3.2): $['orders'][3], and $ for the root. Computed when first read: a JSONPath hit's is known already, a key–value hit's is found by reading the fragments from the root down to the node.
Functions
The node as a JSON string; throws ResultTooLargeException if it has more than maxChars characters.
The node as a JSON string laid out in format; throws ResultTooLargeException if the text has more than maxChars characters, its whitespace included.
Writes the node as JSON (SPEC.md §5) with memory independent of its size. Doesn't close out.