Architecture — SearchBuilder

Crawler, normalizer and database writer.

Module Responsibilities

DMBSearchBuilder is independent from the runtime UI. It receives crawl options, fetches HTML pages, extracts normalized search data and writes the SQLite database consumed later by SearchViewer.

Project structure
Effects/
  Crawler/     → Resolve URI, walk same-site links
  Normalizer/  → Accent, case, punctuation, PascalCase
  Persistence/ → SearchPages + SearchPageTerms tables
wwwroot/Search/data.db  → Generated output

Stored Data

Every crawled page produces one SearchPages record and many SearchPageTerms rows — one per normalized token with its computed weight.

SQLite schema overview
SearchPages
- Url
- Title
- Description
- Keywords
- ContentLength

SearchPageTerms
- PageId
- Term
- Weight

Runtime Boundary

SearchBuilder writes relative page URLs. SearchViewer turns those paths into links and display URLs using the current host configuration, which keeps localhost crawling separate from production display.

Tech Stack
Backend: .NET 10 / ASP.NET Core
Storage: SQLite via Microsoft.Data.Sqlite
Crawling: HttpClient + AngleSharp HTML parsing
Normalization: Accent / case / punctuation / PascalCase

See the full pipeline

Follow each step from launch profile resolution to the final database write.

Rendering Pipeline