Class ContentValueSetBuilder
Builds Examine.ValueSets for IContent items
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ContentValueSetBuilder : BaseValueSetBuilder<IContent>, IContentValueSetBuilder, IPublishedContentValueSetBuilder, IValueSetBuilder<IContent>
Constructors
View SourceContentValueSetBuilder(PropertyEditorCollection, UrlSegmentProviderCollection, IUserService, IShortStringHelper, ICoreScopeProvider, bool, ILocalizationService, IContentTypeService, ILogger<ContentValueSetBuilder>, IDocumentUrlService, ILanguageService)
Initializes a new instance of the ContentValueSetBuilder class.
Declaration
public ContentValueSetBuilder(PropertyEditorCollection propertyEditors, UrlSegmentProviderCollection urlSegmentProviders, IUserService userService, IShortStringHelper shortStringHelper, ICoreScopeProvider scopeProvider, bool publishedValuesOnly, ILocalizationService localizationService, IContentTypeService contentTypeService, ILogger<ContentValueSetBuilder> logger, IDocumentUrlService documentUrlService, ILanguageService languageService)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyEditorCollection | propertyEditors | A collection of property editors used for value extraction. |
| UrlSegmentProviderCollection | urlSegmentProviders | A collection of URL segment providers for generating URL segments. |
| IUserService | userService | The service used to manage users. |
| IShortStringHelper | shortStringHelper | The helper used for generating and manipulating short strings. |
| ICoreScopeProvider | scopeProvider | The provider for managing database scopes. |
| bool | publishedValuesOnly | If set to |
| ILocalizationService | localizationService | The service used for localization and translations. |
| IContentTypeService | contentTypeService | The service used to manage content types. |
| ILogger<ContentValueSetBuilder> | logger | The logger used for logging information and errors. |
| IDocumentUrlService | documentUrlService | The service used to generate document URLs. |
| ILanguageService | languageService | The service used to manage languages. |
Methods
View SourceGetValueSets(params IContent[])
Creates a collection of Examine.ValueSet to be indexed based on a collection of IContent.
Declaration
public override IEnumerable<ValueSet> GetValueSets(params IContent[] content)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent[] | content |
Returns
| Type | Description |
|---|---|
| IEnumerable<ValueSet> |