• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • HelpSearch
  • HelpSearch Class

    FTS5-backed search over the bundled help index. More...

    Header: #include <HelpSearch>
    Inherits: QObject

    Detailed Description

    Extracts :/help/search.sqlite to QStandardPaths::CacheLocation/help/search-<build>.sqlite (one copy per build ID — SQLite cannot read from a qrc) and opens it read-only. query() runs an FTS5 MATCH ranked by bm25(fts, 0.0, 8.0, 3.0, 1.0); results carry a resolved heading anchor per the spec rules:

    When FTS5 returns fewer than minResults rows, query() retries with a fuzzy fallback that expands one term to its Levenshtein-1 neighbours (capped at one fuzzy term per query).