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:
- Throw an exception if there is an uppercase letter in the index. (Does elasticsearch allow non english letters in the index name?)
- 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.