This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

SearchIndexBuilder Pennington.Search

Builds search index documents from TOC entries plus post-pipeline HTML fetched from the running host.

Constructors

.ctor

#
public SearchIndexBuilder(int defaultPriority = 5);

Creates the builder with the default search priority applied when a TOC entry has none.

Parameters

defaultPriority int (optional)

Methods

Build

#
public SearchIndexDocument Build(ContentTocItem toc, string bodyHtml, string headings);

Build a SearchIndexDocument from a TOC entry plus its fetched body HTML and pre-extracted headings text. Draft filtering is handled upstream by each IContentService's TOC builder.

Parameters

toc ContentTocItem
bodyHtml string
headings string

Returns

SearchIndexDocument

Pennington.Search.SearchIndexBuilder

namespace Pennington.Search;

/// Builds search index documents from TOC entries plus post-pipeline HTML fetched from the running host.
public class SearchIndexBuilder
{
    /// Creates the builder with the default search priority applied when a TOC entry has none.
    
public SearchIndexBuilder(int defaultPriority = 5);
/// Build a SearchIndexDocument from a TOC entry plus its fetched body HTML and pre-extracted headings text. Draft filtering is handled upstream by each IContentService's TOC builder.
public SearchIndexDocument Build(ContentTocItem toc, string bodyHtml, string headings);
}