Skip to content

IncludeInParent elastic property in NEST #1307

@yaskamal

Description

@yaskamal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions