Skip to content

Client shouldn't silently fail if index name is wrong #1017

@mastoj

Description

@mastoj

When preparing for a demo I tried to name an index with a capital letter. It took me a while to figure out what was wrong since I didn't get any indicators that it was wrong.

Two solution as I see it:

  1. Throw an exception if there is an uppercase letter in the index. (Does elasticsearch allow non english letters in the index name?)
  2. Do a to lowercase on the index before creating it.

I would go for number one since it is more explicit and probably will guide the developers the right 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