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

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -