Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2901

KeywordMarkerFilter resets keyword attribute state to false for tokens not in protwords.txt

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      KeywordMarkerFilter sets true or false for the KeywordAttribute on all tokens. This erases previous state established further up the filter chain, for example in the case where a custom filter wants to prevent a token from being stemmed.

      If a token is already marked as a keyword (KeywordAttribute.isKeyword() == true), perhaps the KeywordMarkerFilterFactory should not re-set the state to false.

        Attachments

        1. LUCENE-2901.patch
          0.8 kB
          Drew Farris
        2. LUCENE-2901.patch
          0.8 kB
          Drew Farris

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              drew.farris Drew Farris
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: