Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 6.0
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      POST to /schema/dynamicfields will add one or more new dynamic fields to the schema.

      PUT to /schema/dynamicfields/name will add the name'd dynamic field to the schema.

      Like the copyField support added to the /schema/fields REST API by SOLR-5010, it will be possible to specify copyField destinations at the point of dynamic field creation.

      The implementation will follow the /schema/fields REST API implementation fairly closely, with the additional restriction that the field name must follow the dynamic field name restrictions, i.e.: 1) exactly one asterisk must be present in the name; and 2) the asterisk must be the first and/or the last character of the name (first and last only if the asterisk is the entire name).

        Activity

        Hide
        Steve Rowe added a comment -

        Patch, I think it's ready to go.

        The patch also included a performance fix to ManagedIndexSchema.addFields(), to only persist the schema once for all added fields, rather than once per field.

        Timothy Potter, I've made some fairly radical changes to TestCloudManagedSchemaConcurrent (to simplify addition of new Schema API functionality), which will very likely clash with your changes there on SOLR-5098, so we'll need to do a merge at some point.

        Show
        Steve Rowe added a comment - Patch, I think it's ready to go. The patch also included a performance fix to ManagedIndexSchema.addFields() , to only persist the schema once for all added fields, rather than once per field. Timothy Potter , I've made some fairly radical changes to TestCloudManagedSchemaConcurrent (to simplify addition of new Schema API functionality), which will very likely clash with your changes there on SOLR-5098 , so we'll need to do a merge at some point.
        Hide
        Timothy Potter added a comment -

        Patch looks good, please commit when you can.

        Show
        Timothy Potter added a comment - Patch looks good, please commit when you can.
        Hide
        ASF subversion and git services added a comment -

        Commit 1622135 from Use account "steve_rowe" instead in branch 'dev/trunk'
        [ https://svn.apache.org/r1622135 ]

        SOLR-5097: Schema API: Add REST support for adding dynamic fields to the schema.

        Show
        ASF subversion and git services added a comment - Commit 1622135 from Use account "steve_rowe" instead in branch 'dev/trunk' [ https://svn.apache.org/r1622135 ] SOLR-5097 : Schema API: Add REST support for adding dynamic fields to the schema.
        Hide
        ASF subversion and git services added a comment -

        Commit 1622152 from Use account "steve_rowe" instead in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1622152 ]

        SOLR-5097: Schema API: Add REST support for adding dynamic fields to the schema. (merged trunk r1622135)

        Show
        ASF subversion and git services added a comment - Commit 1622152 from Use account "steve_rowe" instead in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1622152 ] SOLR-5097 : Schema API: Add REST support for adding dynamic fields to the schema. (merged trunk r1622135)
        Hide
        Steve Rowe added a comment -

        Committed to trunk and branch_4x.

        Show
        Steve Rowe added a comment - Committed to trunk and branch_4x.
        Hide
        Anshum Gupta added a comment -

        Bulk close after 5.0 release.

        Show
        Anshum Gupta added a comment - Bulk close after 5.0 release.

          People

          • Assignee:
            Steve Rowe
            Reporter:
            Steve Rowe
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development