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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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