- docid: str # a unique idenfier for the document
- tags: Set[str] # an optional set of tags
- properties: List[Tuple[str, str]] # an optional set of key->value properties
- reference: Any # an optional reference to something else
+ # A unique identifier for each document.
+ docid: str = ''
+
+ # A set of tag strings for this document. May be empty.
+ tags: Set[str] = field(default_factory=set)
+
+ # A list of key->value strings for this document. May be empty.
+ properties: List[Tuple[str, str]] = field(default_factory=list)
+
+ # An optional reference to something else; interpreted only by
+ # caller code, ignored here.
+ reference: Optional[Any] = None