Example usage for org.apache.solr.core SolrCore getCoreContainer

List of usage examples for org.apache.solr.core SolrCore getCoreContainer

Introduction

In this page you can find the example usage for org.apache.solr.core SolrCore getCoreContainer.

Prototype

public CoreContainer getCoreContainer() 

Source Link

Usage

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;

}