- Home
- /
- DMBSearchBuilder
- /
- Introduction
Introduction — SearchBuilder
Generate a local search index from a running website.
Walks same-site links before runtime — production never crawls itself.
Title, headings, description and body each carry their own relevance weight.
Outputs a single database file deployable alongside the host website.
What is SearchBuilder?
DMBSearchBuilder is the build-time module that crawls a website and writes a SQLite search database. It extracts page titles, descriptions, visible text and weighted terms so DMBSearchViewer can return relevant results at runtime.
await new SearchBuilderAgent()
.BuildFromLaunchProfileAsync(options);Run the crawler from a prebuilding project against a local launch profile.
Three Pillars of SearchBuilder
Each pillar handles a distinct responsibility in the build pipeline.
Site Crawl
Walks same-site links from the configured base URL while excluding paths such as documentation and search pages.
SearchBuilderAgentWeighted Terms
Stores normalized terms with relevance weights from title, headings, description, URL and body content.
SearchPageTermsSQLite Output
Writes a portable database file that can be deployed with the host website.
Search/data.dbCore Philosophy
SearchBuilder should do expensive discovery before runtime. SearchViewer should only query prepared data. That separation keeps the website responsive and avoids crawling production pages.