Skip to content

SearchDescriptor Index(Indices index) doesn't support empty string #2115

@schroedermarius

Description

@schroedermarius

NEST Version 2.3.1

Im creating a new SearchDescriptor with following code:

var desc = new SearchDescriptor<object>();
When im trying to fill the object with sepcific method calls like:
desc.Index(string.Empty)
Im getting an exception here, which tells me "can not parse an empty string to Indices."

Maybe it is right, that an empty string isn't parsable into Indices. But your method summary of the Index Method on SearchDescriptor says:

    //
    // Summary:
    //     A comma-separated list of index names to search; use `_all` or empty string to
    //     perform the operation on all indices

Thats wrong, because you see, an empty string causes an exception.

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