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

PatternReplaceCharFilterFactory can't replace with ampersands in index

    XMLWordPrintableJSON

Details

    Description

      Using solr.PatternReplaceCharFilterFactory to replace

      A & B

      with

      A&B

      will result in

      A&B

      being indexed. Query analysis will give the expected result of

      A&B

      . I examined the index with both standalone Luke and the schema browser field and the index value is incorrect in both tools.

      This is the affected charFilter:

      <charFilter class="solr.PatternReplaceCharFilterFactory"
                          pattern="(^\w)\s[&amp;]\s(\w)"
                          replacement="$1&amp;$2" />
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            firelore Mike Spencer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: