Skip to content

Derive CreateIndexDescriptor from IndexPathDescriptorBase<P,K> #601

@maximpashuk

Description

@maximpashuk

NEST 1.0

Comparing signatures (I simplify signatures a little):

CloseIndex(CloseIndexDescriptor);
GetIndexSettings(GetIndexSettingsDescriptor);
IndexExists(IndexExistsDescriptor);
OpenIndex(OpenIndexDescriptor);
CreateIndex(string index, CreateIndexDescriptor);

In first 4 methods I can use fluent calls to specify index name, like
CloseIndex(x => x.Index("name"))

BUT only in CreateIndex method I must specify index name as first parameter.

@Mpdreamz , I think index-related API should be uniformed to fluent calls.

As I realized from sources, to achieve this CreateIndexDescriptor should be derived from IndexPathDescriptorBase - but probably I am missing something

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