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

regexTransformer returns no results if there is no match

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.10, 6.0
    • None
    • 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

            shalin Shalin Shekhar Mangar
            alxksn Alexander Kingson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: