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

Anshum Gupta updated SOLR-6448:
-------------------------------
    Attachment: SOLR-6448.patch
                SOLR-6448-4x.patch

Patches for trunk and 4x that do the following:
* Deprecate the current createCollection(tons and tons of arguments), 
splitShard and all other such collections in branch_4x.
* Remove all of the above mentioned methods in trunk.

{code:title=New usage|borderStyle=solid}
// New usage for Create collection
Create createCollectionRequest = new Create();
createCollectionRequest.setCollectionName(collectionName);
.
.
CollectionAdminResponse response = createCollectionRequest.process(server);

// New usage for splitShard
SplitShard splitShardRequest = new SplitShard();
splitShardRequest.setCollectionName(collectionName);
splitShardRequest.setShardName(shardName);
response = splitShardRequest.process(server);

// New usage for REQUESTSTATUS
RequestStatus request = new RequestStatus();
request.setRequestId(requestId);
response = request.process(server);
{code}


> Improve SolrJ support for Collections API
> -----------------------------------------
>
>                 Key: SOLR-6448
>                 URL: https://issues.apache.org/jira/browse/SOLR-6448
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Anshum Gupta
>         Attachments: SOLR-6448-4x.patch, SOLR-6448.patch
>
>
> Right now SolrJ doesn't really support all of the collections API.
> This is a parent issue for bringing SolrJ support for all APIs up to where it 
> should be.



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