[
https://issues.apache.org/jira/browse/SOLR-12126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated SOLR-12126:
--------------------------------
Fix Version/s: (was: 8.1)
(was: master (9.0))
> EmbeddedSolrServer don't pass solrconfig to SolrRequestParsers
> --------------------------------------------------------------
>
> Key: SOLR-12126
> URL: https://issues.apache.org/jira/browse/SOLR-12126
> Project: Solr
> Issue Type: Improvement
> Components: Server
> Affects Versions: 7.2
> Reporter: Dmitry Tikhonov
> Assignee: David Smiley
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Starting from solr 7.2 there is stream.body with default false, but you can
> configure it via solrconfig.xml except one case - EmbeddedSolrServer. In this
> case SolrRequestParsers always got null instead of solr core config. That
> means you can't configure some parameters in case of EmbeddedSolrServer.
> {code:java}
> public EmbeddedSolrServer(CoreContainer coreContainer, String coreName) {
> if (coreContainer == null) {
> throw new NullPointerException("CoreContainer instance required");
> }
> if (Strings.isNullOrEmpty(coreName))
> throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Core name
> cannot be empty");
> this.coreContainer = coreContainer;
> this.coreName = coreName;
> _parser = new SolrRequestParsers(null);
> }{code}
>
> Here is a pull request - [https://github.com/apache/lucene-solr/pull/340] ,
> with some basic tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]