Ich möchte String Array in der elastischen Suche mit NEST (1.8) C# indexieren.Wie Index Array von String mit NEST (1.8) in der elastischen Suche?
Hier ist meine 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; }
}
}
Ich möchte dieses Feld als String Array indizieren.
[ElasticProperty(Name = "Data", Index = FieldIndexOption.Analyzed, Type = FieldType.String, Store = false)]
public string[] Data { get; set; }
Aber es gibt keinen Feldtyp wie Array in ElasticProperty!
Also, welche FieldType sollte ich verwenden oder andere Optionen, um String Array-Daten zu indizieren?
Ok! Ich habs! Ich danke dir sehr! –