Class FieldString
The field used to store a string value
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public class FieldString : FieldBase
Properties
Value to prioritize search results. Set to 1 by default. Ignored if SimpleSearch not set to true.
Declaration
[JsonProperty("boost", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public double Boost { get; set; }
Property Value
If values are stored in this list, field values are limited to these ones.
Declaration
[JsonProperty("grantedValues", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ICollection<string> GrantedValues { get; set; }
Property Value
Defines how the value must be analyzed for filtering by ElasticSearch. A string field can have multiple analyzers, but only one per analyzer type.
The analyzers are applied only if the Index property is set to true.
Declaration
[JsonProperty("indexAnalyzers", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ICollection<AnalyzerBase> IndexAnalyzers { get; set; }
Property Value
The maximum string's length.
Declaration
[JsonProperty("maximumLength", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public int? MaximumLength { get; set; }
Property Value
The minimum string's length.
Declaration
[JsonProperty("minimumLength", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public int? MinimumLength { get; set; }
Property Value
Defines that the field value must be displayed in a multiline component.
Declaration
[JsonProperty("multiLine", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public bool MultiLine { get; set; }
Property Value
Contains a regex validation pattern.
Declaration
[JsonProperty("pattern", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string Pattern { get; set; }
Property Value
Stores information on how values of this field should be rendered
Declaration
[JsonProperty("renderingType", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public StringRenderingType RenderingType { get; set; }
Property Value
Defines how the value must be analyzed for searches by ElasticSearch. A string field can have multiple analyzers, but only one per analyzer type.
The analyzers are applied only if the SimpleSearch property is set to true.
Declaration
[JsonProperty("simpleSearchAnalyzers", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ICollection<AnalyzerBase> SimpleSearchAnalyzers { get; set; }
Property Value
A DotLiquid template. If set, it transforms the field in a calculated field, so that its value is calculated based on this template.
Declaration
[JsonProperty("template", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string Template { get; set; }
Property Value
Methods
Declaration
public static FieldString FromJson(string data)
Parameters
Returns