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

Better validation of fields and dynamic fields for Schema API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.3, 7.0
    • Schema and Analysis
    • None

    Description

      Schema REST API needs better validation before doing changes.

      • It should not be allowed to delete uniqueKey (also handled in SOLR-9349)
      • When adding a dynamic field the API should test that it begins or ends with *. Today the change succeeds, but you get errors later

      These are two known cases. We should harden validation across the board for all known schema requirements.

      Attachments

        1. SOLR-9411-part2.patch
          5 kB
          Steven Rowe
        2. SOLR-9411-part2.patch
          4 kB
          Steven Rowe
        3. SOLR-9411.patch
          6 kB
          Jan Høydahl
        4. SOLR-9411.patch
          3 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: