pybool_ir.index.document#
Implementation for how documents are represented in pybool_ir.
Classes
|
This class is the representation for documents. |
- class pybool_ir.index.document.Document(**kwargs)#
Bases:
object
This class is the representation for documents. Data to be indexed in pybool_ir should be wrapped in this class. Documents retrieved from the index will also be wrapped in this class. In py_bool_ir, documents must have an id and date field, and this class will ensure that both of these fields are present.