@maschinenlesbar.org/dip-bundestag-cli
    Preparing search index...

    Function readDocument

    • A Drucksache or Plenarprotokoll with its full text, for a digest. By id the text endpoint is read at once; a number or title words are resolved on the light metadata endpoint first (never by listing the heavy -text endpoint): one match is read, several are ambiguous (newest first; a number can name a Bundestag and a Bundesrat paper), none is empty saying why. The text comes in passages (at most PASSAGE_CHARS characters, cut at line ends, verbatim: it is the extraction of the PDF, with its hyphenation and page furniture), limit at a time from offset; with find, only the passages that hold the words. A document without extracted text says so and points to the PDF.

      Parameters

      Returns Promise<DocumentReading>