You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "serhiy-bzhezytskyy (via GitHub)" <gi...@apache.org> on 2026/10/01 12:43:22 UTC
[PR] SOLR-18491: Show the v2 API next to v1 on four Ref Guide pages [solr]
serhiy-bzhezytskyy opened a new pull request, #4993:
URL: https://github.com/apache/solr/pull/4993
https://issues.apache.org/jira/browse/SOLR-18491
# Description
Four Ref Guide pages show an API call only in its v1 form, although a working v2 endpoint exists for it. This adds the V1/V2 tabs used elsewhere in the guide.
# Solution
* `exporting-result-sets.adoc`: the three `/export` examples get a V2 tab (`/api/collections/collection_name/export` with the same parameters). Both tabs name the same index, so the placeholder `core_name` becomes `collection_name` in the V1 tab too.
* `schemaless-mode.adoc`: the three `curl` calls for `/schema/fields` and `/schema/copyfields` sat inside sentences; each sentence is split around a V1/V2 tabs block.
* `solr-in-docker.adoc`: creating a collection through the remote API gets a V2 tab (`POST /api/collections` with a JSON body). The page already creates `gettingstarted3` with the third way, so this fourth example now uses `gettingstarted4`.
* `jwt-authentication-plugin.adoc`: the `curl` with the `Authorization` header gets a V2 tab (`/api/node/system`).
# Tests
`./gradlew :solr:solr-ref-guide:buildLocalAntoraSite :solr:solr-ref-guide:checkSiteLinks` passes with no warnings or errors. In the built HTML each new block has the same `tabs` / `tablist` / `tabpanel` structure as the existing V1/V2 tabs.
Each V2 request returned 200 on a local Solr built from main. The `/export` examples used `techproducts` fields in place of the log fields, and the JWT request ran without the plugin configured, so it exercises the route and the header only.
AI-assisted (Claude Sonnet 5).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-18491: Show the v2 API next to v1 on four Ref Guide pages [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #4993:
URL: https://github.com/apache/solr/pull/4993#discussion_r4159957788
##########
solr/solr-ref-guide/modules/query-guide/pages/exporting-result-sets.adoc:
##########
@@ -58,10 +58,26 @@ The default output format is `json`.
Here is an example of an export request of some indexed log data:
+[tabs#export-basic]
+======
+V1 API::
++
+====
[source,text]
----
-http://localhost:8983/solr/core_name/export?q=my-query&sort=severity+desc,timestamp+desc&fl=severity,timestamp,msg
+http://localhost:8983/solr/collection_name/export?q=my-query&sort=severity+desc,timestamp+desc&fl=severity,timestamp,msg
Review Comment:
nice fix
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-18491: Show the v2 API next to v1 on four Ref Guide pages [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #4993:
URL: https://github.com/apache/solr/pull/4993#issuecomment-5936984426
have all these commands been tested? I know it's a pain when the command requires you to do special set up like:
```
http://localhost:8983/api/collections/collection_name/export?q=my-query&sort=severity+desc,timestamp+desc&fl=severity,timestamp,msg
```
this requires a bunch of plumbing to test this command! If it's just a reformaulation of a v1 to v2, probably okay.
I hope in the future that instead of `collection_name` we actually use `films` or `techproducts` so you can just fire up solr with an example `-e films` and then have llm test all the vairous curl commands!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-18491: Show the v2 API next to v1 on four Ref Guide pages [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh merged PR #4993:
URL: https://github.com/apache/solr/pull/4993
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-18491: Show the v2 API next to v1 on four Ref Guide pages [solr]
Posted by "serhiy-bzhezytskyy (via GitHub)" <gi...@apache.org>.
serhiy-bzhezytskyy commented on PR #4993:
URL: https://github.com/apache/solr/pull/4993#issuecomment-5937463235
Yes. The `/export` ones are plain reformulations of the v1 URLs with the same parameters; the log fields exist in no example collection, so I ran them on `techproducts` fields and v1 and v2 return the same. The other five were run on a local Solr built from main next to their v1 form with the same content in the answers, and the two collections from the create call have the same shards, replicas and config. The JWT one ran without the plugin, so it shows that the route and the header pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org