You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Anshum Gupta (JIRA)" <ji...@apache.org> on 2016/04/12 21:26:25 UTC
[jira] [Updated] (SOLR-8974) Collection API calls through SolrJ
should return Java objects instead of or along with NamedLists
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org