Nucleus .Net Core CMS

Search.ContentMetaData Class

Namespace: Nucleus.Abstractions.Search
Assembly: Nucleus.Abstractions.dll
The ContentMetaData class provides an entry to be submitted to a search index.

Properties

Site Property

This site which the resource belongs to.

Url Property

Url used to access the resource for the resource represented by this ContentMetaData instance.
Remarks
This value is required.

Title Property

Title for the resource.
Remarks
The title displayed in search results. Title is optional, but highly recommended. If the title is not set, the search result will display the Url in place of a title.

Summary Property

Short summary for the resource.
Remarks
The summary displayed in search results. Summary is optional. If it is not set, the search result will not display a summary.

Scope Property

URN of the entity which was used to create this search entry.
Remarks
This value is optional. If set, it can be used to allow users to select that only specified result types are included in their search results.

Type Property

Human-readable content type (display name).
Examples
Page, Forum Post, File
Remarks
This value is optional. If set, it can be displayed on screen as part of search results.

SourceId Property

Unique Id for the search entry source.
Remarks
This value is optional. If set, it can be used to manage the individual search result for update and delete operations.

Content Property

Search entry content, used for content indexing.

ContentType Property

Search entry MIME type.
Remarks
This value should be set to the expected MIME type when a user-agent request the Url for this search entry. This is not necessarily the MIME type of the Content field. This value is intended for search result filtering.

Attachments Property

File attachments for the search entry.
Remarks
This value is optional. If set, file names and content are added to the search index. Not all file types can be parsed for content.

PublishedDate Property

Source entity published date
Remarks
This value is optional. If specified, it can be displayed in search results.

Size Property

The size of the resource in bytes.
Remarks
This value is optional and should only be supplied if it is relevant to the resource. If specified, it can be displayed in search results.

Keywords Property

A list of keywords for the resource.
Remarks
This value is optional. If supplied, keywords contribute to the search result weighting.

Categories Property

A list of categories for the resource.
Remarks
This value is optional. If supplied, categories contribute to the search result weighting, and may also be used to filter results.

Roles Property

A list of roles with view access to the resource.
Remarks
This value is optional. If it not specified, search feeders will try to fill in roles by using the roles for the relevant page, module or folder. Roles are used to filter search results to resources which the current user can view.