Skip to content

ConnectionSettings.MapDefaultTypeIndices in NEST 6.x #2926

@tdoman

Description

@tdoman

Hello all, I'm trying out the bleeding edge here and testing NEST 6.x w/ ES 6. I'm using NEST 6.1.0-ci1205045848.

Where did ConnectionSettings.MapDefaultTypeIndices go? I see InferMappingFor<T> is there but that would require me to do something at compile time that I was previously able to do at run time from another list that I'm already required to create to keep track of for other per index things (ie. search fields and aggregations I use, the Type, index name, etc.). For example, "IndexTypes" is that list, so I can do the following:
IndexTypes.ForEach(x => settings.MapDefaultTypeIndices(d => d.Add(x.Type, x.Index)));
What's the 6.0 way?

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