mirror of https://github.com/apache/lucene.git
throw a standard response code when you can't find a field: SOLR-220
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533449 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01ed55a933
commit
0d62dbd149
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue