Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8725

Cores, collections, and shards should accept hyphens in identifier name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.5
    • 5.5.1, 6.0, 7.0
    • None
    • None

    Description

      In SOLR-8642, hyphens are no longer considered valid identifiers for cores (and collections?). Our solr instance was successfully using hyphens in our core names, and our affected cores now error with:

      marc-profiler_shard1_replica1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Invalid name: 'marc-profiler_shard1_replica1' Identifiers must consist entirely of periods, underscores and alphanumerics

      Before starting to rename all of our collections, I wonder if this decision could be revisited to be backwards compatible with previously created collections.

      Attachments

        1. SOLR-8725-fix-regex.patch
          2 kB
          Anshum Gupta
        2. SOLR-8725-5_5.patch
          2 kB
          Shawn Heisey
        3. SOLR-8725.patch
          19 kB
          Anshum Gupta
        4. SOLR-8725.patch
          0.8 kB
          Anshum Gupta

        Issue Links

          Activity

            People

              anshum Anshum Gupta
              cbeer Chris Beer
              Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: