I want to Index Array of String in Elastic Search Using NEST(1.8) C#.
Here is my Mapping
using Nest;
using System;
using System.Data;
namespace ElasticSearch_Final
{
//[ElasticType(IdProperty = "Id", Name = "indexMapping")]
public class indexMapping
{
[ElasticProperty(Name = "Field1", Index = FieldIndexOption.NotAnalyzed, Type = FieldType.String, Store = true)]
public Guid? Field1 { get; set; }
[ElasticProperty(Name = "Field2", Index = FieldIndexOption.NotAnalyzed, Type = FieldType.String, Store = true)]
public string Field2 { get; set; }
[ElasticProperty(Name = "Field3", Index = FieldIndexOption.NotAnalyzed, Type = FieldType.String, Store = true)]
public string Field3 { get; set; }
[ElasticProperty(Name = "Field4", Index = FieldIndexOption.NotAnalyzed, Type = FieldType.String, Store = true)]
public string Field1 { get; set; }
[ElasticProperty(Name = "Field4", Index = FieldIndexOption.NotAnalyzed, Type = FieldType.String, Store = true)]
public string Field1 { get; set; }
[ElasticProperty(Name = "Data", Index = FieldIndexOption.Analyzed, Type = FieldType.String, Store = false)]
public string[] Data { get; set; }
}
}
I want this field to be Indexed as String Array.
[ElasticProperty(Name = "Data", Index = FieldIndexOption.Analyzed, Type = FieldType.String, Store = false)]
public string[] Data { get; set; }
But there is No Field type like Array in ElasticProperty!
So, Which FieldType I should use or Any other options to Index String Array Data?