You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2015/03/25 16:38:52 UTC

[jira] [Updated] (SOLR-7307) Make it easier to create an EmbeddedSolrServer

     [ https://issues.apache.org/jira/browse/SOLR-7307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated SOLR-7307:
--------------------------------
    Attachment: SOLR-7307.patch

Patch, adding two new constructors:
* EmbeddedSolrServer(Path)
* EmbeddedSolrServer(NodeConfig)

This also deprecates the EmbeddedSolrServer(SolrCore) constructor, as you need to have a CoreContainer anyway, and rejigs the request() method so that you can fire CoreAdmin requests at it before there are any cores.

> Make it easier to create an EmbeddedSolrServer
> ----------------------------------------------
>
>                 Key: SOLR-7307
>                 URL: https://issues.apache.org/jira/browse/SOLR-7307
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>         Attachments: SOLR-7307.patch
>
>
> At the moment, if you want to create an EmbeddedSolrServer you have to instantiate a CoreContainer and then pass it in to the ESS constructor, which involves a fair amount of ceremony.  You should be able to just pass a path to a solr home directory, or a NodeConfig object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org