You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2024/12/20 23:28:00 UTC

[jira] [Resolved] (SOLR-4591) Add NamedList.getDefault to get values or use a defaulted value

     [ 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org