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

Shawn Heisey commented on SOLR-5264:
------------------------------------

I've thought of a new approach.  There is already a getAll method.  I can 
implement a removeAll method that's very similar to getAll.  I can then re-do 
the method I've created here, renaming it to removeArgs:  Start with getAll.  
Go through that list and build a collection, throwing an exception if any found 
values are not Strings.  Finally, delete the matching values and return the 
collection.

                
> New method on NamedList to return one or many config arguments as collection
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-5264
>                 URL: https://issues.apache.org/jira/browse/SOLR-5264
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 4.5
>            Reporter: Shawn Heisey
>            Assignee: Shawn Heisey
>            Priority: Minor
>             Fix For: 5.0, 4.6
>
>         Attachments: SOLR-5264.patch, SOLR-5264.patch
>
>
> In the FieldMutatingUpdateProcessorFactory is a method called "oneOrMany" 
> that takes all of the entries in a NamedList and pulls them out into a 
> Collection.  I'd like to use that in a custom update processor I'm building.
> It seems as though this functionality would be right at home as part of 
> NamedList itself.  Here's a patch that moves the method.

--
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