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

Jan Høydahl resolved SOLR-15837.
--------------------------------
    Resolution: Not A Bug

Closing as not a bug.

Please discuss questions and suspected bugs in the 
[us...@solr.apache.org|mailto:us...@solr.apache.org] mailing list before 
opening a bug ticket.

The answer to your question is that in standalone mode you don't work with 
collections, but with cores. Thus it is correct that the collections API shall 
not work. If you want to use v2 api you must use the cores API instead, e.g:

http://localhost:8981/api/cores/testDocuments/config

> Config API behaviour inconsistent
> ---------------------------------
>
>                 Key: SOLR-15837
>                 URL: https://issues.apache.org/jira/browse/SOLR-15837
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: config-api
>    Affects Versions: 8.11
>         Environment: Tested on {color:#000000}Linux fedora 
> 5.15.6-100.fc34.x86_64 #1 SMP Wed Dec 1 13:41:51 UTC 2021 x86_64 x86_64 
> x86_64 GNU/Linux{color}
>            Reporter: Antonio
>            Priority: Minor
>         Attachments: image-2021-12-07-16-06-35-704.png
>
>
> According to documentation published in 
> https://solr.apache.org/guide/8_11/config-api.html, Config API should work 
> for both cloud mode and standalone mode.
> When using V1 of Config API to retrieve config (command: 
> http://localhost:8981/solr/testDocument/config), I get proper response.
> When using V2 of Config API to retrieve config (command: 
> http://localhost:8981/api/collections/testDocuments/config), I get "Solr not 
> running in cloud mode" error.
> Steps to reproduce:
> 1. Download 8.11 version of solr and run it
> 2. Create core with name testDocument
> 3. Navigate to http://localhost:8983/solr/testDocument/config
> 4. Verify that proper response is returned
> 3. Navigate to http://localhost:8983/api/collections/testDocuments/config
> 5. Verify that "Solr not running in cloud mode" json message is displayed
> Im not sure if this is either bug or documentation error.
>  
> !image-2021-12-07-16-06-35-704.png!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to