SearchIndexDocument Pennington.Search
A single document entry in the search index.
Properties
Bodystring- Plain-text body used for full-text matching.
Descriptionstring?- Default:
nullFront-matter description; boosted relative to body. Headingsstring- Space-joined H1–H6 text from the rendered page; boosted relative to body.
Localestring- Locale code this document belongs to.
Priorityint- Default:
0Relative weight used to rank results; higher wins. SectionLabelstring?- Default:
nullOptional section label shown in results. Titlestring- Document title.
Urlstring- Canonical URL for the document.
Constructors
.ctor
#public record SearchIndexDocument(
string Title,
string? Description,
string Headings,
string Body,
string Url,
string? SectionLabel,
string Locale,
int Priority
);A single document entry in the search index.
Parameters
Titlestring- Document title.
Descriptionstring?- Front-matter description; boosted relative to body.
Headingsstring- Space-joined H1–H6 text from the rendered page; boosted relative to body.
Bodystring- Plain-text body used for full-text matching.
Urlstring- Canonical URL for the document.
SectionLabelstring?- Optional section label shown in results.
Localestring- Locale code this document belongs to.
Priorityint- Relative weight used to rank results; higher wins.
Pennington.Search.SearchIndexDocument
namespace Pennington.Search;
/// A single document entry in the search index.
public record SearchIndexDocument
{
/// A single document entry in the search index.
public record SearchIndexDocument(
string Title,
string? Description,
string Headings,
string Body,
string Url,
string? SectionLabel,
string Locale,
int Priority
);
/// Plain-text body used for full-text matching.
string Body
;
/// Front-matter description; boosted relative to body.
string? Description
;
/// Space-joined H1–H6 text from the rendered page; boosted relative to body.
string Headings
;
/// Locale code this document belongs to.
string Locale
;
/// Relative weight used to rank results; higher wins.
int Priority
;
/// Optional section label shown in results.
string? SectionLabel
;
/// Document title.
string Title
;
/// Canonical URL for the document.
string Url
;
}