Introduction — SearchBuilder

Generate a local search index from a running website.

Prebuild Crawling

Walks same-site links before runtime — production never crawls itself.

Weighted Terms

Title, headings, description and body each carry their own relevance weight.

Portable SQLite

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.

Designed for prebuilding — production consumes the generated database without crawling itself
Can run against a local launch profile to keep crawling separate from production
PascalCase-aware normalizer indexes both TitleBuilder and title builder automatically
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.

SearchBuilderAgent
Weighted Terms

Stores normalized terms with relevance weights from title, headings, description, URL and body content.

SearchPageTerms
SQLite Output

Writes a portable database file that can be deployed with the host website.

Search/data.db

Core 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.

Next Step

Configure a launch profile and database path in the prebuilding project.

Getting Started