Skip to content

Cannot pass SourceConfig with Includes/Excludes in Reindex call #8825

@kplazinski

Description

@kplazinski

Elastic.Clients.Elasticsearch version: 8.19.X

Elasticsearch version: 8.19.10

.NET runtime version: .net 9

Operating system version: Win11

Description of the problem including expected versus actual behavior:
Hello, in the 8.X verrsion of nuget there is no way to pass Excludes in the call of the reindex api - this code cannot be applied (which works in the nuget 9.X), because SourceFields cannot accept new instance of the SourceConfig class.

await _client.ReindexAsync(x => x.Source(src => src.SourceFields(new Elastic.Clients.Elasticsearch.Core.Search.SourceConfig(new SourceFilter { Excludes = Fields.FromString("something") }))));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions