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:
Ryan McKinley 2007-04-29 00:23:37 +00:00
parent 01ed55a933
commit 0d62dbd149
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ public final class IndexSchema {
/*** REMOVED -YCS /*** REMOVED -YCS
if (defaultFieldType != null) return new SchemaField(fieldName,defaultFieldType); if (defaultFieldType != null) return new SchemaField(fieldName,defaultFieldType);
***/ ***/
throw new SolrException(1,"undefined field "+fieldName); throw new SolrException(400,"undefined field "+fieldName);
} }
/** /**