elasticsearch/elasticsearch — pull request #2113 by imotov (2012-07-24 17:21:35+00:00)
Title: Support files with no extension in config mappings

When config mappings directory contains a file without an extension, index creation fails with

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

To reproduce:
* create file test (with no extension) in directory config/mappings/_default
* create a new index
* index creation fails

Since an extension doesn't play any role in the mapping parsing, it might make sense to support files with no extensions or provide a better error message.

Found in https://groups.google.com/d/topic/elasticsearch/tcfhIpxaRKQ/discussion