@Override public void inform(SolrCore core) { this.core = core; queryOnlyComponents = new ArrayList<SearchComponent>(); queryOnlyComponents.add(core.getSearchComponent("query")); if (shfInfo == null) { shardHandlerFactory = core.getCoreContainer().getShardHandlerFactory(); } else { shardHandlerFactory = core.createInitInstance(shfInfo, ShardHandlerFactory.class, null, null); core.addCloseHook(new CloseHook() { @Override public void preClose(SolrCore core) { shardHandlerFactory.close(); } @Override public void postClose(SolrCore core) { } }); } }
DebugComponent dbgCmp = null; for(String c : list){ SearchComponent comp = core.getSearchComponent( c ); if (comp instanceof DebugComponent && makeDebugLast == true){ dbgCmp = (DebugComponent) comp;
@Override public void prepare(ResponseBuilder rb) throws IOException { QueryDocAuthorizationComponent docComponent = (QueryDocAuthorizationComponent)rb.req.getCore().getSearchComponent("queryDocAuthorization"); if (docComponent != null) { String userName = sentryInstance.getUserName(rb.req);
SearchComponent highlightComponenet = null; if (core != null) { highlightComponenet = core.getSearchComponent("highlight"); solrQueryRequest = new LocalSolrQueryRequest(core, queryResponse.getResponseHeader());