[ 
https://issues.apache.org/jira/browse/SOLR-15750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617429#comment-17617429
 ] 

Jason Gerlowski edited comment on SOLR-15750 at 10/3/23 1:13 PM:
-----------------------------------------------------------------

Some months back I put together a 
[spreadsheet|https://docs.google.com/spreadsheets/d/1HAoBBFPpSiT8mJmgNZKkZAPwfCfPvlc08m5jz3fQBpA/edit?usp=sharing]
 to inventory Solr's v1 APIs, their v2 equivalents, and propose some 
improvements to the v2 APIs.  Those proposed v2 improvements included 
suggestions for what the "missing" v2 APIs should look like when they get 
added, and those proposed changes got some tenative +1's from the mailing list. 
 Nothing is set in stone of course, but I put a good bit of thought into it, so 
it's at least a good start on what the v2 REINDEXCOLLECTION API should look 
like.

Specifically for REINDEXCOLLECTION, the syntax I proposed at the time was: 
{{POST /api/collections/sourceCollName/commands?action=reindex <request-body> }}

A few other pointers that might be helpful, especially for newcomers:
* The v1 logic for this API lives in CollectionsHandler.java
* [Some discussion of how to create a new v2 
API|https://github.com/apache/solr/blob/main/dev-docs/apis.adoc#writing-jax-rs-apis]
* [A recent PR that adds a v2 API, as an 
example|https://github.com/apache/solr/pull/1061/files]


was (Author: gerlowskija):
Some months back I put together a 
[spreadsheet|https://docs.google.com/spreadsheets/d/1HAoBBFPpSiT8mJmgNZKkZAPwfCfPvlc08m5jz3fQBpA/edit?usp=sharing]
 to inventory Solr's v1 APIs, their v2 equivalents, and propose some 
improvements to the v2 APIs.  Those proposed v2 improvements included 
suggestions for what the "missing" v2 APIs should look like when they get 
added, and those proposed changes got some tenative +1's from the mailing list. 
 Nothing is set in stone of course, but I put a good bit of thought into it, so 
it's at least a good start on what the v2 REINDEXCOLLECTION API should look 
like.

Specifically for REINDEXCOLLECTION, the syntax I proposed at the time was: 
{{POST /api/collections/sourceCollName/commands?action=reindex <request-body> }}

A few other pointers that might be helpful, especially for newcomers:
* The v1 logic for this API lives in CollectionsHandler.java
* [Some discussion of how to create a new v2 
API|https://issues.apache.org/jira/browse/SOLR-15737?focusedCommentId=17565076&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17565076]
* [A recent PR that adds a v2 API, as an 
example|https://github.com/apache/solr/pull/1061/files]

> Create a v2 equivalent for 'REINDEXCOLLECTION'
> ----------------------------------------------
>
>                 Key: SOLR-15750
>                 URL: https://issues.apache.org/jira/browse/SOLR-15750
>             Project: Solr
>          Issue Type: Sub-task
>          Components: v2 API
>            Reporter: Jason Gerlowski
>            Assignee: Jason Gerlowski
>            Priority: Major
>              Labels: V2, newdev
>
> Solr's 'REINDEXCOLLECTION' command under the v1 \{{/solr/admin/collections}} 
> endpoint has no v2 equivalent. This should be remedied to inch v2 closer to 
> parity with v1 in preparation for eventual v1 deprecation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to