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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -