enquire-mcp API reference - v4.0.0-rc.7
    Preparing search index...

    Function syncPdfFtsIndex

    • Synchronize PDF chunks into an opened FTS5 index.

      The complete bounded PDF inventory is diffed against retained PDF source state. Each changed source is extracted and admitted independently; failed or partial page evidence quarantines that source while preserving its prior coherent generation. A complete textless PDF authoritatively clears stale rows. The optional PDF module is resolved before any destructive diff work.

      Parameters

      • vault: Vault

        Vault whose complete admitted PDF inventory is synchronized.

      • idx: FtsIndex

        Open FTS index receiving committed PDF generations.

      Returns Promise<PdfFtsSyncReport>

      Counters for actual commits, authoritative textless skips, and failures.

      When the bounded source inventory is incomplete, the optional extraction module cannot load, or deletion itself fails.

      const report = await syncPdfFtsIndex(vault, index);
      if (!report.complete) process.stderr.write(`PDF failures: ${report.failed}\n`);