You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2012/03/09 01:36:36 UTC
svn commit: r1298668 - in /lucene/dev/branches/branch_3x: ./ lucene/
lucene/contrib/spellchecker/ solr/ solr/CHANGES.txt solr/core/
solr/core/src/java/org/apache/solr/schema/IndexSchema.java
Author: hossman
Date: Fri Mar 9 00:36:36 2012
New Revision: 1298668
URL: http://svn.apache.org/viewvc?rev=1298668&view=rev
Log:
SOLR-3077: Better error messages when attempting to use 'blank' field names (merge 1298667 from trunk)
Modified:
lucene/dev/branches/branch_3x/ (props changed)
lucene/dev/branches/branch_3x/lucene/ (props changed)
lucene/dev/branches/branch_3x/lucene/contrib/spellchecker/ (props changed)
lucene/dev/branches/branch_3x/solr/ (props changed)
lucene/dev/branches/branch_3x/solr/CHANGES.txt
lucene/dev/branches/branch_3x/solr/core/ (props changed)
lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
Modified: lucene/dev/branches/branch_3x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/CHANGES.txt?rev=1298668&r1=1298667&r2=1298668&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/solr/CHANGES.txt Fri Mar 9 00:36:36 2012
@@ -262,6 +262,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)
Modified: lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/schema/IndexSchema.java?rev=1298668&r1=1298667&r2=1298668&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/schema/IndexSchema.java (original)
+++ lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/schema/IndexSchema.java Fri Mar 9 00:36:36 2012
@@ -1258,7 +1258,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+"\"");
}
/**