From 072e5261554a5114fe7a18ab7241934bd55ddfb4 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Sat, 8 Dec 2007 07:27:49 +0000 Subject: [PATCH] SOLR-281 -- building a SearchComponent registry with components initialized via the standard plugin utils method. git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@602341 13f79535-47bb-0310-9956-ffa450edef68 --- example/solr/conf/solrconfig.xml | 59 +++++++-- src/java/org/apache/solr/core/Config.java | 7 +- src/java/org/apache/solr/core/SolrCore.java | 40 ++++++ .../apache/solr/handler/SearchHandler.java | 122 +++++++++++++----- .../solr/handler/StandardRequestHandler.java | 23 +--- .../handler/component/DebugComponent.java | 26 +++- .../handler/component/FacetComponent.java | 5 +- .../handler/component/HighlightComponent.java | 9 +- .../component/MoreLikeThisComponent.java | 5 +- .../handler/component/QueryComponent.java | 2 + .../handler/component/ResponseBuilder.java | 18 +++ .../handler/component/SearchComponent.java | 10 +- src/java/org/apache/solr/search/SortSpec.java | 5 + .../solr/handler/SearchHandlerTest.java | 77 +++++++++++ 14 files changed, 324 insertions(+), 84 deletions(-) create mode 100644 src/test/org/apache/solr/handler/SearchHandlerTest.java diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml index d33c2339361..4b9cb741b00 100755 --- a/example/solr/conf/solrconfig.xml +++ b/example/solr/conf/solrconfig.xml @@ -288,19 +288,6 @@ - - - explicit - - - org.apache.solr.handler.component.QueryComponent - org.apache.solr.handler.component.FacetComponent - org.apache.solr.handler.component.MoreLikeThisComponent - org.apache.solr.handler.component.HighlightComponent - org.apache.solr.handler.component.DebugComponent - - - + + + + explicit + + + + +