mirror of https://github.com/apache/lucene.git
SOLR-1431 ShardHandler can be SolrCoreAware, SearchHandler should implement PluginInfoInitialized
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1142976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a338c7b309
commit
868ca9c554
|
@ -30,6 +30,7 @@ import java.net.URLClassLoader;
|
|||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import org.apache.solr.handler.component.ShardHandlerFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -653,7 +654,8 @@ public class SolrResourceLoader implements ResourceLoader
|
|||
SolrRequestHandler.class,
|
||||
QueryResponseWriter.class,
|
||||
SearchComponent.class,
|
||||
UpdateRequestProcessorFactory.class
|
||||
UpdateRequestProcessorFactory.class,
|
||||
ShardHandlerFactory.class
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.solr.handler.RequestHandlerBase;
|
|||
import org.apache.solr.request.SolrQueryRequest;
|
||||
import org.apache.solr.response.SolrQueryResponse;
|
||||
import org.apache.solr.util.SolrPluginUtils;
|
||||
import org.apache.solr.util.plugin.PluginInfoInitialized;
|
||||
import org.apache.solr.util.plugin.SolrCoreAware;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -40,7 +41,7 @@ import java.util.*;
|
|||
* Refer SOLR-281
|
||||
*
|
||||
*/
|
||||
public class SearchHandler extends RequestHandlerBase implements SolrCoreAware
|
||||
public class SearchHandler extends RequestHandlerBase implements SolrCoreAware , PluginInfoInitialized
|
||||
{
|
||||
static final String INIT_COMPONENTS = "components";
|
||||
static final String INIT_FIRST_COMPONENTS = "first-components";
|
||||
|
|
Loading…
Reference in New Issue