Class IndexValue
Represents an index value for a property to be indexed in the search system.
Inheritance
object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public sealed class IndexValue
Constructors
View SourceIndexValue()
Declaration
public IndexValue()
Properties
View SourceCulture
Gets or sets the culture for this index value.
Declaration
public required string? Culture { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Can be null for culture-invariant properties.
FieldName
Gets or sets the field name to use in the index.
Declaration
public required string FieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Values
Gets or sets the values to be indexed for this field.
Declaration
public required IEnumerable<object?> Values { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<object> |
Remarks
A field can have multiple values, for example when indexing tags or multi-select values.