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.
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.
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.
Search entry content, used for content indexing.
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.
A list of keywords for the resource.
Remarks
This value is optional. If supplied, keywords contribute to the search result weighting.
Source entity published date
Remarks
This value is optional. If specified, it can be displayed in search results.
The "raw" identifier for the resource. This is typically used for cloud-hosted files and is provided by the file system provider. This is not guaranted to be a Url, it is a value used by a search index underlying provider as a unique Id for the file.
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.
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.
This site which the resource belongs to.
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.
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.
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.
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.
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.
Url used to access the resource for the resource represented by this ContentMetaData instance.
Remarks
This value is required.