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

Add a new update processor factory that will dynamically add fields to the schema if an input document contains unknown fields

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.4, 6.0
    • update
    • None

    Description

      Previous ParseFooUpdateProcessorFactory-s (see SOLR-4892) in the same chain will detect, parse and convert unknown fields’ String-typed values to the appropriate Java object type.

      This factory will take as configuration a set of mappings from Java object type to schema field type.

      ManagedIndexSchema.addFields() adds new fields to the schema.

      If schema addition fails for any field, addition is re-attempted only for those that don’t match any schema field. This process is repeated, either until all new fields are successfully added, or until there are no new fields (because the fields that were new when this update chain started its work were subsequently added by a different update request, possibly on a different node).

      Attachments

        1. SOLR-4894.patch
          43 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: