Lucene - Core
  1. Lucene - Core
  2. LUCENE-3880

UAX29URLEmailTokenizer fails to recognize emails as such when the mailto: scheme is prepended

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5, 4.0-ALPHA
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      As reported by Kai Gülzau on solr-user:

      UAX29URLEmailTokenizer seems to split at the wrong place:

      mailto:test@example.org

      ->

      mailto:test
      example.org

      As a workaround I use

      <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="mailto:" replacement="mailto: "/>
      

        Activity

        Steve Rowe created issue -
        Steve Rowe made changes -
        Field Original Value New Value
        Description As [reported by Kai Gülzau on solr-user|http://markmail.org/message/n32kji3okqm2c5qn]:

        UAX29URLEmailTokenizer seems to split at the wrong place:

        mailto:test@example.org ->
        mailto:test
        example.org

        As a workaround I use

        <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="mailto:" replacement="mailto: "/>
        As [reported by Kai Gülzau on solr-user|http://markmail.org/message/n32kji3okqm2c5qn]:

        UAX29URLEmailTokenizer seems to split at the wrong place:

        {noformat}mailto:test@example.org{noformat} ->
        {noformat}mailto:test{noformat}
        {noformat}example.org{noformat}

        As a workaround I use

        {code:xml}
        <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="mailto:" replacement="mailto: "/>
        {code}
        Steve Rowe made changes -
        Attachment LUCENE-3880.patch [ 12518838 ]
        Steve Rowe made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Lucene Fields New [ 10121 ] New,Patch Available [ 10121,10120 ]
        Fix Version/s 3.6 [ 12319070 ]
        Fix Version/s 4.0 [ 12314025 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Steve Rowe
            Reporter:
            Steve Rowe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development