Getting Started — SearchViewer

Install runtime search into the host website.

1. Install the NuGet package

SearchViewer belongs in the ASP.NET Core website that renders the search UI.

Install DMBSearchViewer
dotnet add package DMBSearchViewer

2. Configure services

Load SearchViewer after the PageBuilder and BootstrapBuilder infrastructure.

Program.cs — services
using DMBSearchViewer;

SearchViewerConfiguration.LoadCommonConfig(builder);

3. Use the application module

Call UseApp after building the application so the viewer can expose its controller and assets.

Program.cs — middleware
WebApplication app = builder.Build();

SearchViewerConfiguration.UseApp(app);

4. Provide search data

Register providers or use the built-in providers for SearchBuilder and DocumentationViewer. Each provider returns SearchResult objects with a final Score .

Runtime Pieces
SearchNavbarComponent
SearchCompositeAgent
ISearchProvider
SearchController

Understand how providers and results are composed

Explore the provider contract and the composite aggregation architecture.

Architecture