have remove( name ) return the SolrInputField rather then true/false

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@554405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-07-08 18:34:52 +00:00
parent e651f05738
commit f7804a08f8
1 changed files with 6 additions and 5 deletions

View File

@ -162,13 +162,14 @@ public class SolrInputDocument implements Iterable<SolrInputField>
}
/**
* Remove a field
* Remove a field from the document
*
* @param the field name
* @return true if a field was removed
* @param key The field name whose field is to be removed from the document
* @return the previous field with <tt>name</tt>, or
* <tt>null</tt> if there was no field for <tt>key</tt>.
*/
public boolean removeField(String name) {
return _fields.remove( name ) != null;
public SolrInputField removeField(String name) {
return _fields.remove( name );
}
/**