Skip to content

Apache Lucene open-source search software

throw a standard response code when you can't find a field: SOLR-220

Ryan McKinley0d62dbd14964
diff --git a/src/java/org/apache/solr/schema/IndexSchema.java b/src/java/org/apache/solr/schema/IndexSchema.java
index e142edec962..fb669ba197a 100644
--- a/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/src/java/org/apache/solr/schema/IndexSchema.java
@@ -706,7 +706,7 @@ public final class IndexSchema {
/*** REMOVED -YCS
if (defaultFieldType != null) return new SchemaField(fieldName,defaultFieldType);
***/
- throw new SolrException(1,"undefined field "+fieldName);
+ throw new SolrException(400,"undefined field "+fieldName);
}
/**