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

CloneFieldUpdateProcessorFactory should not add {set=} to content when cloned to multivalued field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Works for Me
    • 7.2
    • None
    • None

    Description

      I'm using the CloneFieldUpdateProcessorFactory to copy content from all string fields except some predefined fields to a multivalued "text_final" field. This seems to work, however each value value is prepended with "{set=" and appended with "}".

      Expected result
      Just clone all the original values into the multivalued field without "{set=}".  

      In my schema this field is defined as:

      <field name="text_final" type="text_nl" indexed="true" stored="true" multiValued="true"/>

      The fieldType is defined as:

      <fieldType name="text_nl" class="solr.TextField" positionIncrementGap="100">
      <analyzer>
      <charFilter class="solr.PatternReplaceCharFilterFactory" pattern='>' replacement=' ' />
      <tokenizer class="solr.StandardTokenizerFactory"/>
      <filter class="solr.LowerCaseFilterFactory"/>
      <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_nl.txt"
      format="snowball"/>
      <filter class="solr.HunspellStemFilterFactory"
      dictionary="lang/nederlands/nl_NL.dic"
      affix="lang/nederlands/nl_NL.aff"
      ignoreCase="true"/>
      </analyzer>
      </fieldType>

      In my updateRequestProcessorChain the processor is defined as:

      <processor class="solr.CloneFieldUpdateProcessorFactory">
      <lst name="source">
      <str name="fieldRegex">s_.*</str>
      <lst name="exclude">
      <str name="fieldName">s_description</str>
      <str name="fieldName">s_image_link</str>
      <str name="fieldName">s_link</str>
      </lst>
      </lst>
      <str name="dest">text_final</str>
      </processor>

      Attachments

        Activity

          People

            Unassigned Unassigned
            japsen Jaap de Jong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: