Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10432 V2 API follow up items
  3. SOLR-10711

Solr V2 API should work on standalone nodes

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.5
    • 6.7, 7.0
    • v2 API
    • None

    Description

      See this discussion
      https://lists.apache.org/thread.html/86d745383fb5975b57a42929df0c1734c686c3458b48b32caf7044f7@%3Cdev.lucene.apache.org%3E

      Reproduce

      $ bin/solr start
      $ curl localhost:8983/v2
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 400 {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=Invalid request. collections can be accessed only in SolrCloud mode,code=400}</title>
      </head>
      <body><h2>HTTP ERROR 400</h2>
      <p>Problem accessing /solr/____v2. Reason:
      <pre>    {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=Invalid request. collections can be accessed only in SolrCloud mode,code=400}</pre></p>
      </body>
      </html>
      

      It works in cloud mode

      $ bin/solr start -c
      $ curl localhost:8983/v2
      {"responseHeader":{"status":0,"QTime":29},"collections":[]}
      

      Attachments

        1. SOLR-10711.patch
          4 kB
          Cao Manh Dat

        Activity

          People

            caomanhdat Cao Manh Dat
            janhoy Jan H√łydahl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: