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

regexTransformer returns no results if there is no match

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      When used in data-import config file to replace spaces in title with _

      <field column="title_underscore" regex="\s+" replaceWith="_"
      sourceColName="title" />

      regexTransformer returns empty results for titles without spaces, i.e. when there is no match for the regex. According to the description it is equivalent to replaceAll which returns string when there is no match.

        Attachments

        1. regexTransformer.patch
          0.8 kB
          Alexander Kingson
        2. SOLR-6383.patch
          3 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              alxksn Alexander Kingson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: