List of usage examples for org.apache.solr.core SolrCore getCoreContainer
public CoreContainer getCoreContainer()
From source file:org.alfresco.solr.query.Solr4QueryParser.java
License:Open Source License
/** * IndexSchema// w w w . j a v a2 s.co m * @param matchVersion * @param f * @param a */ public Solr4QueryParser(SolrQueryRequest req, Version matchVersion, String f, Analyzer a, FTSQueryParser.RerankPhase rerankPhase) { super(f, a); setAllowLeadingWildcard(true); setAnalyzeRangeTerms(true); this.rerankPhase = rerankPhase; this.schema = req.getSchema(); this.solrContentStore = getContentStore(req); this.solrParams = req.getParams(); SolrCore core = req.getCore(); if (core != null) { this.shardHandlerFactory = core.getCoreContainer().getShardHandlerFactory(); } this.request = req; }