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
defaultPriorityint (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
tocContentTocItembodyHtmlstringheadingsstring
Returns
SearchIndexDocumentPennington.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);
}