fixed typo on FIRST

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@630012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2008-02-21 21:51:44 +00:00
parent ff37f3c5f0
commit fe9dcf82cb
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware
static final String RESPONSE_BUILDER_CONTEXT_KEY = "ResponseBuilder";
static final String INIT_COMPONENTS = "components";
static final String INIT_FISRT_COMPONENTS = "first-components";
static final String INIT_FIRST_COMPONENTS = "first-components";
static final String INIT_LAST_COMPONENTS = "last-components";
protected static Logger log = Logger.getLogger(SearchHandler.class.getName());
@ -76,7 +76,7 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware
public void inform(SolrCore core)
{
Object declaredComponents = initArgs.get(INIT_COMPONENTS);
List<String> first = (List<String>) initArgs.get(INIT_FISRT_COMPONENTS);
List<String> first = (List<String>) initArgs.get(INIT_FIRST_COMPONENTS);
List<String> last = (List<String>) initArgs.get(INIT_LAST_COMPONENTS);
List<String> list = null;

View File

@ -64,7 +64,7 @@ public class SearchHandlerTest extends AbstractSolrTestCase
names1.add( FacetComponent.COMPONENT_NAME );
args = new NamedList();
args.add( SearchHandler.INIT_FISRT_COMPONENTS, names0 );
args.add( SearchHandler.INIT_FIRST_COMPONENTS, names0 );
args.add( SearchHandler.INIT_LAST_COMPONENTS, names1 );
handler = new SearchHandler();
handler.init( args );