[
https://issues.apache.org/jira/browse/SOLR-4591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley resolved SOLR-4591.
--------------------------------
Resolution: Duplicate
This ended up being done as getOrDefault (mirroring the same method name as
Map) in:
SOLR-14680: Deprecating org.apache.solr.cluster.api, includes NamedList methods
(#2856)
Coming in 9.8.
> Add NamedList.getDefault to get values or use a defaulted value
> ---------------------------------------------------------------
>
> Key: SOLR-4591
> URL: https://issues.apache.org/jira/browse/SOLR-4591
> Project: Solr
> Issue Type: Improvement
> Components: search
> Reporter: Andrew Lundgren
> Priority: Trivial
> Attachments: SOLR-4591.patch, SOLR-4591.patch
>
>
> I seem to be putting a fair amount of code in my components to support having
> default values for keys that may not be specified in the solrconfig.xml
> Add a function to NamedList that supports getting a value with the option of
> using a default.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]