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

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -