-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Is the IncludeInParent elastic property available in NEST C# like they have it for IncludeInAll.
If yes then how we add the IncludeInParent property to the objects. I don't want to use fluent mapping as my index creating class is dynamic for an e.g:
public ESClient CreateIndex() where T : class
{
if (!Client.IndexExists(f => f.Index(ESIndexName)).Exists)
{
Client.CreateIndex(ESIndexName, c => c
.NumberOfReplicas(1)
.NumberOfShards(4)
.Settings(s => s
.Add("merge.policy.merge_factor", "10")
.Add("search.slowlog.threshold.fetch.warn", "1s")
)
.AddMapping(m => m.MapFromAttributes())
);
}
return this;
}
Is there a way I can specify IncludeInParent like IncludeInAll as below:
[ElasticProperty(IncludeInAll = true)]
public List Cars { get; set; }
If not I think its nice to add IncludeInParent elastic property in NEST library.