Package org.apache.solr.servlet

Examples of org.apache.solr.servlet.SolrDispatchFilter


  public String getSolrHome() {
    return SolrTestCaseJ4.TEST_HOME();
  }

  protected void uploadConfigDirToZk(String collectionConfigDir) throws Exception {
    SolrDispatchFilter dispatchFilter =
      (SolrDispatchFilter) jettys.get(0).getDispatchFilter().getFilter();
    ZkController zkController = dispatchFilter.getCores().getZkController();
    // conf1 is the config used by AbstractFullDistribZkTestBase
    zkController.uploadConfigDir(new File(collectionConfigDir), "conf1");
  }
View Full Code Here


    verifyUpdatePass(ADMIN_USER, collectionName, solrInputDoc);
  }

  private ZkController getZkController() {
    SolrDispatchFilter dispatchFilter =
      (SolrDispatchFilter) miniSolrCloudCluster.getJettySolrRunners().get(0).getDispatchFilter().getFilter();
    return dispatchFilter.getCores().getZkController();
  }
View Full Code Here

      uri = uri.substring(0, uri.length() - 1);
    }
    final String pattern = uri + "/**/*";
    return FilterMapping.filter(pattern)
        .param("path-prefix", uri)
        .through(new SolrDispatchFilter() {
          @Override
          protected CoreContainer createCoreContainer() {
            logger.info("Solr is listening at: {}", pattern);
            // Don't initialize cores twice just use the Spring one.
            return solrCores;
View Full Code Here

      uri = uri.substring(0, uri.length() - 1);
    }
    final String pattern = uri + "/**/*";
    return FilterMapping.filter(pattern)
        .param("path-prefix", uri)
        .through(new SolrDispatchFilter() {
          @Override
          protected Initializer createInitializer() {
            logger.info("Solr is listening at: {}", pattern);
            return new Initializer() {
              @Override
View Full Code Here

TOP

Related Classes of org.apache.solr.servlet.SolrDispatchFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.