SOLR-3077: Better error messages when attempting to use blank field names

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1298667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2012-03-09 00:34:13 +00:00
parent 29a1f13e35
commit f30f04a347
2 changed files with 5 additions and 1 deletions

View File

@ -674,6 +674,10 @@ Other Changes
* SOLR-3140: Upgrade schema version to 1.5, where omitNorms defaults to "true" for all
primitive (non-analyzed) field types such as int, float, date, bool, string.. (janhoy)
* SOLR-3077: Better error messages when attempting to use "blank" field names
(Antony Stubbs via hossman)
Build
----------------------
* SOLR-2487: Add build target to package war without slf4j jars (janhoy)

View File

@ -920,7 +920,7 @@ public final class IndexSchema {
/*** REMOVED -YCS
if (defaultFieldType != null) return new SchemaField(fieldName,defaultFieldType);
***/
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,"undefined field "+fieldName);
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,"undefined field: \""+fieldName+"\"");
}
/**