[ 
https://issues.apache.org/jira/browse/SOLR-4591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13603966#comment-13603966
 ] 

Andrew Lundgren edited comment on SOLR-4591 at 3/15/13 11:13 PM:
-----------------------------------------------------------------

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.

The patch was made against solr4x
                
      was (Author: lundgren):
    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
>         Attachments: 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 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to