Rishabh Makhija Rishabh Makhija - 4 years ago 111
ASP.NET (C#) Question

How to prevent indexing field?

I want to prevent indexing Id field for search using Nest attributes.

[Number(type: NumberType.Long, IncludeInAll = false, Index = false)]
public long Id { get; set; }

Answer Source

Create mapping first.

_elasticClient .MapAsync<TEntitySearchModel>(m => m.AutoMap());
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download