File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -727,14 +727,18 @@ class Highlight(typing.TypedDict):
727727 Schema for highlighting search results.
728728
729729 Attributes:
730- matched_tokens (list[str]): List of matched tokens.
730+ matched_tokens (list[str] | list[list[str]] ): List of matched tokens.
731731 snippet (str): Snippet of the matched tokens.
732+ snippets (list[str]): Snippets of the matched tokens (for array fields).
733+ indices (list[int]): Indices of the matched tokens (for array fields).
732734 value (str): Value of the matched tokens.
733735 """
734736
735- matched_tokens : typing .List [str ]
736- snippet : str
737- value : str
737+ matched_tokens : typing .Union [typing .List [str ], typing .List [typing .List [str ]]]
738+ snippet : typing .NotRequired [str ]
739+ snippets : typing .NotRequired [typing .List [str ]]
740+ indices : typing .NotRequired [typing .List [int ]]
741+ value : typing .NotRequired [str ]
738742
739743
740744class HighlightExtended (Highlight ):
You can’t perform that action at this time.
0 commit comments