lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r1298667 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/schema/IndexSchema.java
Date Fri, 09 Mar 2012 00:34:13 GMT
Author: hossman
Date: Fri Mar  9 00:34:13 2012
New Revision: 1298667

URL: http://svn.apache.org/viewvc?rev=1298667&view=rev
Log:
SOLR-3077: Better error messages when attempting to use blank field names

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/IndexSchema.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1298667&r1=1298666&r2=1298667&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Fri Mar  9 00:34:13 2012
@@ -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)

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/IndexSchema.java?rev=1298667&r1=1298666&r2=1298667&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/IndexSchema.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/schema/IndexSchema.java Fri Mar  9
00:34:13 2012
@@ -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+"\"");
   }
 
   /**



Mime
View raw message