-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
NEST/Elasticsearch.Net version: v6.0.0-rc1
Elasticsearch version: 6.1.1
Description of the problem including expected versus actual behavior:
We need to use the icu_collation_keyword property type for our mappings. In the previous version of NEST, we used a custom implementation of IProperty
(code below). However, since upgrading the package to v6.0.0-rc1, the properties marked with the JsonProperty
don't get serialized anymore.
Expected behavior: either an already existing implementation of the icu_collation_keyword
or the proper serialization of properties marked with JsonProperty
.
Steps to reproduce:
- Use the below implementation of a property
- Field is mapped as "type": "icu_collation_keyword", but all other properties (language and so on) are missing
public class IcuCollationKeywordProperty : IProperty
{
public IcuCollationKeywordProperty(string name, string language)
{
this.Name = new PropertyName(name);
this.Type = "icu_collation_keyword";
this.Language = language;
this.Variant = "@collation=standard";
this.Strength = "primary";
this.Numeric = true;
}
public IcuCollationKeywordProperty(string language)
: this(null, language)
{
}
public string Type { get; set; }
public PropertyName Name { get; set; }
public IDictionary<string, object> LocalMetadata { get; set; }
[JsonProperty("language")]
public string Language { get; set; }
[JsonProperty("strength")]
public string Strength { get; set; }
[JsonProperty("variant")]
public string Variant { get; set; }
[JsonProperty("numeric")]
public bool Numeric { get; set; }
}
Metadata
Metadata
Assignees
Labels
No labels