You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2017/07/18 11:26:00 UTC
[jira] [Comment Edited] (SOLR-11037) Add a method which returns the
current solr.data.home directory without a CoreDescriptor argument
[ https://issues.apache.org/jira/browse/SOLR-11037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091428#comment-16091428 ]
Andrzej Bialecki edited comment on SOLR-11037 at 7/18/17 11:25 AM:
--------------------------------------------------------------------
I think {{solr.xml}} is the best place for this - we can implicitly add an element {{<solrDataHome>$\{solr.data.home:\}</solrDataHome>}} if it's missing, so that it captures the sysprop. {{NodeConfig}} is available mostly everywhere in Solr so we can add the accessor method there, and use it in DirectoryFactory.
was (Author: ab):
I think {{solr.xml}} is the best place for this - we can implicitly add an element {{<solrDataHome>${solr.data.home:}</solrDataHome>}} if it's missing, so that it captures the sysprop. {{NodeConfig}} is available mostly everywhere in Solr so we can add the accessor method there, and use it in DirectoryFactory.
> Add a method which returns the current solr.data.home directory without a CoreDescriptor argument
> -------------------------------------------------------------------------------------------------
>
> Key: SOLR-11037
> URL: https://issues.apache.org/jira/browse/SOLR-11037
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: metrics, SolrCloud
> Affects Versions: 7.0
> Reporter: Shalin Shekhar Mangar
> Assignee: Andrzej Bialecki
> Labels: metrics
> Fix For: 7.0
>
> Attachments: SOLR-11037.patch
>
>
> It'd be nice to have a method which returns the current solr.data.home without needing to create a core descriptor first.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org