Delen via


SimpleField Class

Definition

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

public class SimpleField : Azure.Search.Documents.Indexes.Models.SearchFieldTemplate
type SimpleField = class
    inherit SearchFieldTemplate
Public Class SimpleField
Inherits SearchFieldTemplate
Inheritance
Derived

Constructors

SimpleField(String, SearchFieldDataType)

Initializes a new instance of the SimpleField class.

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.

Name

Gets the name of the field.

(Inherited from SearchFieldTemplate)
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.

Type

Gets the data type of the field.

(Inherited from SearchFieldTemplate)

Applies to