SimpleFieldAttribute Class

Definition

Attributes a simple field using a primitive type or a collection of a primitive type.

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class SimpleFieldAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type SimpleFieldAttribute = class
    inherit Attribute
Public Class SimpleFieldAttribute
Inherits Attribute
Inheritance
SimpleFieldAttribute
Derived
Attributes

Constructors

SimpleFieldAttribute()

Properties

IsFacetable

Gets or sets a value indicating whether the field can be retrieved in facet queries. The default is false.

IsFilterable

Gets or sets a value indicating whether the field can be referenced in $filter queries. The default is false.

IsHidden

Gets or sets whether the field is returned in search results. The default is false. A key field where IsKey is true must have this property set to false.

IsKey

Gets or sets whether the field is the key field. The default is false. A SearchIndex must have exactly one key field of type String.

IsSortable

Gets or sets a value indicating whether to enable the field can be referenced in $orderby expressions. The default is false.

NormalizerName

The name of the normalizer to use for the field. This option can be used only with fields with filterable, sortable, or facetable enabled. Once the normalizer is chosen, it cannot be changed for the field. Must be null for complex fields.

Applies to