I am a newbie to elasticsearch. Does anyone know any reasons for this exception while indexing data.
"Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.addMappings(MetaDataCreateIndexService.java:355)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.access$500(MetaDataCreateIndexService.java:81)"
Check config/mappings/_default and config/mappings/YOUR-INDEX-NAMEdirectories, if you see any files there without an extension - rename them
to have an extension (.json, for example).
Igor
On Monday, July 23, 2012 2:52:35 PM UTC-4, uboness wrote:
Hi,
Looks like formatting of the mapping settings. Would be helpful if you
also paste the settings.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.