org.apache.solr.client.solrj.embedded

Class EmbeddedSolrServer

    • Constructor Detail

      • EmbeddedSolrServer

        public EmbeddedSolrServer(Path solrHome,
                                  String defaultCoreName)
        Create an EmbeddedSolrServer using a given solr home directory
        Parameters:
        solrHome - the solr home directory
        defaultCoreName - the core to route requests to by default
      • EmbeddedSolrServer

        public EmbeddedSolrServer(NodeConfig nodeConfig,
                                  String defaultCoreName)
        Create an EmbeddedSolrServer using a NodeConfig
        Parameters:
        nodeConfig - the configuration
        defaultCoreName - the core to route requests to be default
      • EmbeddedSolrServer

        public EmbeddedSolrServer(CoreContainer coreContainer,
                                  String coreName)
        Create an EmbeddedSolrServer wrapping a CoreContainer.

        Note that EmbeddedSolrServer will shutdown the wrapped CoreContainer when close() is called.

        Parameters:
        coreContainer - the core container
        coreName - the core to route requests to be default