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

Anshum Gupta updated SOLR-8974:
-------------------------------
    Attachment: SOLR-8974.patch

Here's a patch to start with. There's still more to be done. It needs 
improvements in :
* OverseerStatusResponse and ClusterStatusResponse object
* Correct 'isSuccess' method that returns true only if the request was 
successful, after looking at the HTTP response code, exceptions, etc.
* Documentation - javadocs and ref guide
* Migration of tests to use these response objects instead of reinventing the 
wheel everytime


> Collection API calls through SolrJ should return Java objects instead of or 
> along with NamedLists
> -------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8974
>                 URL: https://issues.apache.org/jira/browse/SOLR-8974
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Anshum Gupta
>            Assignee: Anshum Gupta
>         Attachments: SOLR-8974.patch
>
>
> As of now, we return open-ended the NamedList to users as a response to a 
> CollectionAdmin request via SolrJ. The users shouldn't need to be bothered 
> about 'NamedList' but instead should have an easier way to work with the 
> response e.g.: Create an collection should return a response object that has 
> methods like:
> * getReplicaInfo() - returns replica information about the newly created 
> replicas.
> List collections:
> * return a List<String> via a call that looks like response.getCollections()
> and so on.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to