[ 
https://issues.apache.org/jira/browse/SOLR-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-654:
-------------------------------

    Attachment: SOLR-654-SolrResposneAPI.patch

This patch moves initialization logic to 'setResponse( NamedList<> )
{code:java}
public abstract class SolrResponse implements Serializable
{
  public abstract long getElapsedTime();
  public abstract void setResponse(  NamedList<Object> rsp );
  public abstract NamedList<Object> getResponse();
}
{code}
rather then having each implementation do its own initialization directly.

> Modify the solrj SolrResponse API so responses can be dynamicaly constructed 
> and loaded.
> ----------------------------------------------------------------------------------------
>
>                 Key: SOLR-654
>                 URL: https://issues.apache.org/jira/browse/SOLR-654
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>            Reporter: Ryan McKinley
>            Assignee: Ryan McKinley
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-654-SolrResposneAPI.patch
>
>
> The current SolrResponse implementations put most of their logic within a 
> class specific constructor.  This makes it difficult to dynamically build and 
> populate a SolrResponse via reflection.
> This patch removes the NamedList<Object> from most constructors and puts it 
> into a method: setResponse( NamedList )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to