SearchField.IsFilterable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the field can be referenced in $filter
queries. The default is null.
This property must be null for complex fields, but can be set on simple fields within a complex field.
public bool? IsFilterable { get; set; }
member this.IsFilterable : Nullable<bool> with get, set
Public Property IsFilterable As Nullable(Of Boolean)
Property Value
Remarks
Filterable differs from searchable in how strings are handled. Fields of type String or "Collection(DataType.String)" that are filterable do not undergo word-breaking, so comparisons are for exact matches only. For example, if you set such a field f
to "sunny day", $filter=f eq 'sunny'
will find no matches, but $filter=f eq 'sunny day'
will.
This field must be set according to constraints described in the summary, or the server may respond with an error. Instead, consider using the SimpleField, SearchableField, VectorSearchField and ComplexField classes to help you more easily create a SearchIndex.