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

audit & cleanup "schema" in data_driven_schema_configs

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • None
    • None

    Description

      the data_driven_schema_configs configset has some issues that should be reviewed carefully & cleaned up...

      • currentkly includes a schema.xml file:
        • this was previously pat of the old example to show the automatic "bootstraping" of schema.xml -> managed-schema, but at this point it's just kind of confusing
        • we should just rename this to "managed-schema" in svn - the ref guide explains the bootstraping
      • the effective schema as it currently stands includes a bunch of copyFields & dynamicFields that are taken wholesale from the techproducts example
        • some of these might make sense to keep in a general example (ie: "*_txt") but in general they should all be reviewed.
        • a bunch of this cruft is actually commented out already, but anything we don't want to keep should be removed to eliminate confusion
      • SOLR-6471 added an explicit "_text" field as the default and made it a copyField catchall (ie: "*")
        • the ref guide schema API example responses need to reflect the existence of this field: https://cwiki.apache.org/confluence/display/solr/Schemaless+Mode
        • we should draw heavy attention to this field+copyField – both with a "/!\ NOTE" in the refguide and call it out in solrconfig.xml & "managed-schema" file comments since people who start with these configs may be suprised and wind up with a very bloated index

      Attachments

        1. SOLR-6913.patch
          13 kB
          Steven Rowe
        2. SOLR-6913-trim-schema.patch
          43 kB
          Steven Rowe
        3. SOLR-6913-trim-schema.patch
          44 kB
          Steven Rowe

        Activity

          People

            sarowe Steven Rowe
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: