You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrew Lundgren (JIRA)" <ji...@apache.org> on 2013/03/16 00:12:12 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13603966#comment-13603966 ] 

Andrew Lundgren commented on SOLR-4591:
---------------------------------------

Originally I had hoped to use just get for the function name, but using the syntax get(key, defaultValue) would conflict with the get(key,index).   Mine is called getDefault(String name, U default) where U is a generic that isn't the T with which the NamedList is created.
                
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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