c# - Exclude property from being indexed -
i have created below object mapped elasticsearch type. exclude univid
property being indexed:
[elastictype(name = "type1")] public class type1 { // ignored public string univid { get; set; } [elasticproperty(name="id")] public int id { get; set; } [elasticproperty(name = "descsearch")] public string descsearch { get; set; } }
you should able set optout
value of elasticproperty
attribute, following:
[elasticproperty(optout = true)] public string univid { get; set; }
Comments
Post a Comment