mirror of https://github.com/apache/lucene.git
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:
parent
29a1f13e35
commit
f30f04a347
|
@ -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)
|
||||
|
|
|
@ -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+"\"");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue